hv_netvsc: add missing NETDEV_XDP_ACT_NDO_XMIT xdp-features flag
authorLorenzo Bianconi <lorenzo@kernel.org>
Sun, 12 Feb 2023 09:57:58 +0000 (10:57 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Feb 2023 03:48:45 +0000 (19:48 -0800)
Add missing ndo_xdp_xmit bit to xdp_features capability flag.

Fixes: 66c0e13ad236 ("drivers: net: turn on XDP features")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/8e3747018f0fd0b5d6e6b9aefe8d9448ca3a3288.1676195726.git.lorenzo@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/hyperv/netvsc_drv.c

index a9b139bbdb2cb9910745108e31d59c1661f4f712..e34ccd47ae57a39149470b74f160fa33d28362c1 100644 (file)
@@ -2559,7 +2559,8 @@ static int netvsc_probe(struct hv_device *dev,
 
        netdev_lockdep_set_classes(net);
 
-       net->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT;
+       net->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |
+                           NETDEV_XDP_ACT_NDO_XMIT;
 
        /* MTU range: 68 - 1500 or 65521 */
        net->min_mtu = NETVSC_MTU_MIN;