]> git.droids-corp.org - dpdk.git/commitdiff
net/vmxnet3: add VLAN filter capability
authorMark Gillott <mgillott@vyatta.att-mail.com>
Wed, 1 May 2019 15:29:42 +0000 (16:29 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
The driver supports VLAN filtering, but the option is not included in
the advertised list of capabilities. Thus any attempt to enable VLAN
filtering always fails. Update the list of offload capabilities to
include DEV_RX_OFFLOAD_VLAN_FILTER.

Fixes: 95e4a96ccbf1 ("net/vmxnet3: convert to new Rx offload API")
Cc: stable@dpdk.org
Signed-off-by: Mark Gillott <mgillott@vyatta.att-mail.com>
Acked-by: Yong Wang <yongwang@vmware.com>
drivers/net/vmxnet3/vmxnet3_ethdev.c

index 846d7fd7a94e2139e9a683d39af928bf3fe438c5..f54536b49907643600aee9262f2c3cb5af4244d5 100644 (file)
@@ -52,6 +52,7 @@
 
 #define VMXNET3_RX_OFFLOAD_CAP         \
        (DEV_RX_OFFLOAD_VLAN_STRIP |    \
+        DEV_RX_OFFLOAD_VLAN_FILTER |   \
         DEV_RX_OFFLOAD_SCATTER |       \
         DEV_RX_OFFLOAD_IPV4_CKSUM |    \
         DEV_RX_OFFLOAD_UDP_CKSUM |     \