diff options
author | Taehee Yoo <ap420073@gmail.com> | 2022-04-17 13:12:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-20 12:42:57 +0300 |
commit | 45638f013a63219378f7a2f9b49c5acbfe031c5a (patch) | |
tree | 80abb6d381f95119f9e8742fafa63137ba1d0c99 /drivers/net/ethernet/aquantia/atlantic/aq_main.c | |
parent | 26efaef759a1bc43e819ee44cfd8a1fc4514e8c9 (diff) | |
download | linux-45638f013a63219378f7a2f9b49c5acbfe031c5a.tar.xz |
net: atlantic: Implement .ndo_xdp_xmit handler
aq_xdp_xmit() is the callback function of .ndo_xdp_xmit.
It internally calls aq_nic_xmit_xdpf() to send packet.
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/aq_main.c')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_main.c b/drivers/net/ethernet/aquantia/atlantic/aq_main.c index e794ee25b12b..88595863d8bc 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_main.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_main.c @@ -508,6 +508,7 @@ static const struct net_device_ops aq_ndev_ops = { .ndo_vlan_rx_kill_vid = aq_ndo_vlan_rx_kill_vid, .ndo_setup_tc = aq_ndo_setup_tc, .ndo_bpf = aq_xdp, + .ndo_xdp_xmit = aq_xdp_xmit, }; static int __init aq_ndev_init_module(void) |