mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 13:27:57 +02:00
net: lan966x: set xdp_features flag
Set xdp_features netdevice flag if lan966x nic supports xdp mode. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com> Link: https://lore.kernel.org/r/01f4412f28899d97b0054c9c1a63694201301b42.1676055718.git.lorenzo@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
9b0bf4f771
commit
ef01749f6a
|
|
@ -823,6 +823,11 @@ static int lan966x_probe_port(struct lan966x *lan966x, u32 p,
|
|||
|
||||
port->phylink = phylink;
|
||||
|
||||
if (lan966x->fdma)
|
||||
dev->xdp_features = NETDEV_XDP_ACT_BASIC |
|
||||
NETDEV_XDP_ACT_REDIRECT |
|
||||
NETDEV_XDP_ACT_NDO_XMIT;
|
||||
|
||||
err = register_netdev(dev);
|
||||
if (err) {
|
||||
dev_err(lan966x->dev, "register_netdev failed\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user