]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Avoid TX CQE generation if more xmit packets expected
authorAchiad Shochat <achiad@mellanox.com>
Tue, 23 Jun 2015 14:14:18 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2015 07:42:37 +0000 (00:42 -0700)
commit0cd008f21e8d555e1c84a6d2726fff3726ffaa57
treee9711602004814e252867e16c1cf7363a5f5cd0c
parentcec2655a6f05d51e808a4bcc5b68014cf9d9f39d
net/mlx5e: Avoid TX CQE generation if more xmit packets expected

In order to save PCI BW consumed by TX CQEs and to reduce the amount of
CPU cache misses caused by TX CQE reading, we request TX CQE generation
only when skb->xmit_more=0.

As a consequence of the above, a single TX CQE may now indicate the
transmission completion of multiple TX SKBs.

This also handles a problem introduced in commit b1b8105ebf41 "net/mlx5e:
Support NETIF_F_SG" where we didn't ask for NOP completions while the
driver didn't have the proper code to handle this case.

Fixes: b1b8105ebf41 ('net/mlx5e: Support NETIF_F_SG')
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>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c