]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Fix user prio field in XDP forward
authorTariq Toukan <tariqt@mellanox.com>
Thu, 22 Dec 2016 12:32:58 +0000 (14:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Dec 2016 22:53:47 +0000 (17:53 -0500)
commite817305c32dd95bb3d14aa15aafe52631686ea3e
tree848c3bcb653e0b5ccc7a845228b87b6bb770ee9f
parenta86172269320db7934bf38b165a9e728caf7368e
net/mlx4_en: Fix user prio field in XDP forward

The user prio field is wrong (and overflows) in the XDP forward
flow.
This is a result of a bad value for num_tx_rings_p_up, which should
account all XDP TX rings, as they operate for the same user prio.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reported-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c