]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: add ndo_set_vf_vlan() function for EF10
authorShradha Shah <sshah@solarflare.com>
Wed, 20 May 2015 10:11:54 +0000 (11:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2015 22:43:54 +0000 (18:43 -0400)
commit015062e514ecfd306ea758de43692a8640a86c06
tree5edc6837a9a8f2d8638cb52e6c9c1128a63609d5
parent0c4b898c7555b39b5116d6fb5bf2070b42d30967
sfc: add ndo_set_vf_vlan() function for EF10

The max vlan tags that can be offloaded is 2, including any upstream VLAN
aggregator. Currently there is no way for the net driver to know whether
the upstream vswitch (if any) is using vlan tags, so there is no way to
know how many tags we can request.
Along with the implementation for the ndo_set_vf_vlan callback, this patch
also adds 2 VLAN tags for the driver created VEB switch if possible, that
way it is possible to offload as many tags as are allowed.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10_sriov.c
drivers/net/ethernet/sfc/ef10_sriov.h