summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
diff options
context:
space:
mode:
authorOr Gerlitz2017-01-12 15:19:29 +0100
committerSaeed Mahameed2017-11-05 05:27:01 +0100
commit21b9c1449d21f347e57ba5e69eec460066e5182a (patch)
treece380637b085137f9e32ebcee322ee8b1bf402ae /drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
parentnet/mlx5e: DCBNL, Add debug messages log (diff)
downloadkernel-qcow2-linux-21b9c1449d21f347e57ba5e69eec460066e5182a.tar.gz
kernel-qcow2-linux-21b9c1449d21f347e57ba5e69eec460066e5182a.tar.xz
kernel-qcow2-linux-21b9c1449d21f347e57ba5e69eec460066e5182a.zip
net/mlx5: Enlarge the NIC TC offload table size
The NIC TC offload table size was hard coded to 1k. Change it to be min(max NIC RX table size, min(max flow counters, 64k) * num flow groups) where the max values are read from the firmware and the number of flow groups is hard-coded as before this change. We don't know upfront the division of flows to groups (== different masks). This setup allows each group to be of size up to the where we want to go (when supported, all offloaded flows use counters). Thus, we don't expect multiple occurences for a group which in turn would add steering hops. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c')
0 files changed, 0 insertions, 0 deletions