]> asedeno.scripts.mit.edu Git - linux.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)
commit745136a8b72d638f3ee53a2b6a63f11c64a59937
treeafd9491c44790a2d8778cbe41a311895edd2ffdb
parent1a8782e59ff9bb0ed4b75d6a346a2ed212bd2031
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