summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2015-06-11 14:47:31 +0300
committerDavid S. Miller <davem@davemloft.net>2015-06-11 15:55:25 -0700
commit12be4b2190f0e22dc8f7c8ca173bc233d0d46246 (patch)
tree47fb19c12583df0b84f0448ebed7c7f6eec58e99 /net/switchdev/switchdev.c
parent796a27ec2d9f722ce5a08bd5b33f3c7712fb6127 (diff)
net/mlx5e: Support NETIF_F_SG
When NETIF_F_SG is set, each send WQE may have a different size since each skb can have different number of fragments as of LSO header etc. This implies that a given WQE may wrap around the send queue, i.e begin at its end and continue at its start. While it is legal by the device spec, we preferred a solution that avoids it - when building of current WQE is done, if the next WQE may wrap around the send queue, fill the send queue with NOPs WQEs till its end, so that the next WQE will begin at send queue start. NOP WQE for itself cannot wrap around the send queue since it is of minimal size - 64 bytes, and all send WQEs are a multiple of that size. Signed-off-by: Achiad Shochat <achiad@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions