Message ID | 20200819092811.GA2420@lore-desk |
---|---|
State | New |
Headers | show |
Series | xdp generic default option | expand |
diff --git a/net/core/dev.c b/net/core/dev.c index a00aa737ce29..1f85880ee412 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -8747,9 +8747,9 @@ static enum bpf_xdp_mode dev_xdp_mode(u32 flags) { if (flags & XDP_FLAGS_HW_MODE) return XDP_MODE_HW; - if (flags & XDP_FLAGS_DRV_MODE) - return XDP_MODE_DRV; - return XDP_MODE_SKB; + if (flags & XDP_FLAGS_SKB_MODE) + return XDP_MODE_SKB; + return XDP_MODE_DRV; } static bpf_op_t dev_xdp_bpf_op(struct net_device *dev, enum bpf_xdp_mode mode)