summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorTariq Toukan2018-02-11 14:21:33 +0100
committerSaeed Mahameed2018-03-31 01:16:17 +0200
commit73281b78a37a1a3f392fd5b6116d04e597484529 (patch)
tree723a3c3ca78b72e8b67c8e9408a66afffd462064 /Kbuild
parentnet/mlx5e: Save MTU in channels params (diff)
downloadkernel-qcow2-linux-73281b78a37a1a3f392fd5b6116d04e597484529.tar.gz
kernel-qcow2-linux-73281b78a37a1a3f392fd5b6116d04e597484529.tar.xz
kernel-qcow2-linux-73281b78a37a1a3f392fd5b6116d04e597484529.zip
net/mlx5e: Derive Striding RQ size from MTU
In Striding RQ, each WQE serves multiple packets (hence called Multi-Packet WQE, MPWQE). The size of a MPWQE is constant (currently 256KB). Upon a ringparam set operation, we calculate the number of MPWQEs per RQ. For this, first it is needed to determine the number of packets that can reside within a single MPWQE. In this patch we use the actual MTU size instead of ETH_DATA_LEN for this calculation. This implies that a change in MTU might require a change in Striding RQ ring size. In addition, this obsoletes some WQEs-to-packets translation functions and helps delete ~60 LOC. Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions