aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-10-06 01:04:21 -0400
committerDavid S. Miller <davem@davemloft.net>2014-10-06 01:04:21 -0400
commit4e62ccd901062c532673f4fda16c484de2c3c8fc (patch)
tree33befd15a97dcb8bb8b3a78bc6d355caf2d37f59 /include
parentf2600cf02b5b59aaee082c3485b7f01fc7f7b70c (diff)
parent1556b8746e52501fdfaadd65837baaa63a9fa937 (diff)
Merge branch 'mlx4-next'
Amir Vadai says: ==================== net/mlx4_en: Optimizations to TX flow This patchset contains optimizations to TX flow in mlx4_en driver. It also introduce setting/getting tx copybreak, to enable controlling inline threshold dynamically. TX flow optimizations was authored and posted to the mailing list by Eric Dumazet [1] as a single patch. I splitted this patch to smaller patches, Reviewed it and tested. Changed from original patch: - s/iowrite32be/iowrite32/, since ring->doorbell_qpn is stored as be32 The tx copybreak patch was also suggested by Eric Dumazet, and was edited and reviewed by me. User space patch will be sent after kernel code is ready. I am sending this patchset now since the merge window is near and don't want to miss it. More work need to do: - Disable BF when xmit_more is in use - Make TSO use xmit_more too. Maybe by splitting small TSO packets in the driver itself, to avoid extra cpu/memory costs of GSO before the driver - Fix mlx4_en_xmit buggy handling of queue full in the middle of a burst partially posted to send queue using xmit_more Eric, I edited the patches to have you as the Author and the first signed-off-by. I hope it is ok with you (I wasn't sure if it is ok to sign by you), anyway all the credit to those changes should go to you. Patchset was tested and applied over commit 1e203c1 "(net: sched: suspicious RCU usage in qdisc_watchdog") [1] - https://patchwork.ozlabs.org/patch/394256/ ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx4/device.h2
-rw-r--r--include/uapi/linux/ethtool.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index b2f8ab9a57c4..37e4404d0227 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -583,7 +583,7 @@ struct mlx4_uar {
583}; 583};
584 584
585struct mlx4_bf { 585struct mlx4_bf {
586 unsigned long offset; 586 unsigned int offset;
587 int buf_size; 587 int buf_size;
588 struct mlx4_uar *uar; 588 struct mlx4_uar *uar;
589 void __iomem *reg; 589 void __iomem *reg;
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h
index 7a364f2f3d3f..99b43056a6fe 100644
--- a/include/uapi/linux/ethtool.h
+++ b/include/uapi/linux/ethtool.h
@@ -212,6 +212,7 @@ struct ethtool_value {
212enum tunable_id { 212enum tunable_id {
213 ETHTOOL_ID_UNSPEC, 213 ETHTOOL_ID_UNSPEC,
214 ETHTOOL_RX_COPYBREAK, 214 ETHTOOL_RX_COPYBREAK,
215 ETHTOOL_TX_COPYBREAK,
215}; 216};
216 217
217enum tunable_type_id { 218enum tunable_type_id {