mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
nfp: run representor TX locklessly
Our representors are software devices built on top of the PF vNIC, the only state they have are per-cpu stats, so make the TX run locklessly. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: John Hurley <john.hurley@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d7cc825225
commit
9db8bbcb9b
1 changed files with 2 additions and 0 deletions
|
@ -299,6 +299,8 @@ int nfp_repr_init(struct nfp_app *app, struct net_device *netdev,
|
|||
|
||||
SWITCHDEV_SET_OPS(netdev, &nfp_port_switchdev_ops);
|
||||
|
||||
netdev->features |= NETIF_F_LLTX;
|
||||
|
||||
if (nfp_app_has_tc(app)) {
|
||||
netdev->features |= NETIF_F_HW_TC;
|
||||
netdev->hw_features |= NETIF_F_HW_TC;
|
||||
|
|
Loading…
Add table
Reference in a new issue