]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: ignore invalid multicast address entries
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 3 Jun 2015 23:30:58 +0000 (16:30 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Jun 2015 21:20:23 +0000 (14:20 -0700)
commit56ce3ca0e09da424d57e0ca44c737b1367e49445
treeafd9491c44790a2d8778cbe41a311895edd2ffdb
parentede6cee1f709a42c5ef3ca7d9e10bc77b9ecf4ed
fm10k: ignore invalid multicast address entries

This change fixes an issue with adding an invalid multicast address
using the iproute2 tool (ip maddr add <MADDR> dev <dev>). The iproute2
tool and the kernel do not validate or filter the multicast addresses
when adding them to the multicast list. Thus, when synchronizing this
list with an invalid entry, the action will be aborted with an error
since the fm10k driver currently validates the list. Consequently,
multicast entries beyond the invalid one will not be processed and
communicated with the switch via the mailbox. This change makes it so
that invalid addresses will simply be skipped and allows synchronizing
the full list to proceed.

Signed-off-by: Ngai-Mint Kwan <ngai-mint.kwan@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c