Skip to content

Commit 800e77e

Browse files
committed
idpf: enable xsk features and ndo_xsk_wakeup
1 parent 25fcc7f commit 800e77e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/ethernet/intel/idpf/idpf_lib.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,8 @@ static int idpf_cfg_netdev(struct idpf_vport *vport)
839839
netdev->features |= dflt_features;
840840
netdev->hw_features |= dflt_features | offloads;
841841
netdev->hw_enc_features |= dflt_features | offloads;
842-
netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT;
842+
netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |
843+
NETDEV_XDP_ACT_XSK_ZEROCOPY;
843844
idpf_set_ethtool_ops(netdev);
844845
SET_NETDEV_DEV(netdev, &adapter->pdev->dev);
845846

@@ -2682,6 +2683,7 @@ static const struct net_device_ops idpf_netdev_ops_splitq = {
26822683
.ndo_tx_timeout = idpf_tx_timeout,
26832684
.ndo_bpf = idpf_xdp,
26842685
.ndo_xdp_xmit = idpf_xdp_xmit,
2686+
.ndo_xsk_wakeup = idpf_xsk_splitq_wakeup,
26852687
};
26862688

26872689
static const struct net_device_ops idpf_netdev_ops_singleq = {

0 commit comments

Comments
 (0)