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)
commiteb9def61be7197669cab51f43789b53aa7a69509
tree848c3bcb653e0b5ccc7a845228b87b6bb770ee9f
parent693c56491fb720087437a635e6eaf440659b922f
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