]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: insert catch-all filters for encapsulated traffic
authorEdward Cree <ecree@solarflare.com>
Fri, 27 Jan 2017 15:02:52 +0000 (15:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jan 2017 16:59:31 +0000 (11:59 -0500)
commitd7ec0a529a8a67c509618fe56a31b9f917db605a
treef4efdf0f07abaa69f49d6e1d2d0390fdbd89b999
parent2478ae08726280f283ebda85ef1d330fe8766c14
sfc: insert catch-all filters for encapsulated traffic

8000 series adapters support filtering VXLAN, NVGRE and GENEVE traffic
 based on inner fields, and when the NIC recognises such traffic, it
 does not match unencapsulated traffic filters any more.  So add catch-
 all filters for encapsulated traffic on supporting platforms.
Although recognition of VXLAN and GENEVE is based on UDP ports, and thus
 will not occur until the driver (on the primary PF) notifies the
 firmware of UDP ports to use, NVGRE will always be recognised, hence
 without this patch 8000 series adapters will drop all NVGRE traffic.

Partly based on patches by Jon Cooper <jcooper@solarflare.com>.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/filter.h