ionic: set station addr only if needed
authorShannon Nelson <snelson@pensando.io>
Wed, 8 Apr 2020 16:19:12 +0000 (09:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Apr 2020 20:02:32 +0000 (13:02 -0700)
commit216902ae770e21e739cd3b530b0b3ab3c28641d3
tree309928a3b47c91c4a60b7e3c2eb660a0d97b4223
parent7e4d47596b686bb2714d05f8774ada884ec8983d
ionic: set station addr only if needed

The code was working too hard and in some cases was trying to
delete filters that weren't there, generating a potentially
misleading error message.
    IONIC_CMD_RX_FILTER_DEL (32) failed: IONIC_RC_ENOENT (-2)

Fixes: 2a654540be10 ("ionic: Add Rx filter and rx_mode ndo support")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c