aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_nic.c
diff options
context:
space:
mode:
authorFaisal Latif <flatif@neteffect.com>2008-04-29 16:46:54 -0400
committerRoland Dreier <rolandd@cisco.com>2008-04-29 16:46:54 -0400
commit37dab4112d7b53c3574426ef7bdd92a78d32ac3e (patch)
treec6d8e9e04a35baa6a0669281a923c4aa07542c7e /drivers/infiniband/hw/nes/nes_nic.c
parentb4132efa1a47858d741ecb05b8735e6fcb603bc8 (diff)
RDMA/nes: Use LRO
Signed-off-by: Faisal Latif <flatif@neteffect.com. Signed-off-by: Glenn Streiff <gstreiff@neteffect.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_nic.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_nic.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index e5366b013c1a..6998af0172ab 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -936,8 +936,7 @@ static int nes_netdev_change_mtu(struct net_device *netdev, int new_mtu)
936 return ret; 936 return ret;
937} 937}
938 938
939#define NES_ETHTOOL_STAT_COUNT 55 939static const char nes_ethtool_stringset[][ETH_GSTRING_LEN] = {
940static const char nes_ethtool_stringset[NES_ETHTOOL_STAT_COUNT][ETH_GSTRING_LEN] = {
941 "Link Change Interrupts", 940 "Link Change Interrupts",
942 "Linearized SKBs", 941 "Linearized SKBs",
943 "T/GSO Requests", 942 "T/GSO Requests",
@@ -993,8 +992,12 @@ static const char nes_ethtool_stringset[NES_ETHTOOL_STAT_COUNT][ETH_GSTRING_LEN]
993 "CQ Depth 32", 992 "CQ Depth 32",
994 "CQ Depth 128", 993 "CQ Depth 128",
995 "CQ Depth 256", 994 "CQ Depth 256",
995 "LRO aggregated",
996 "LRO flushed",
997 "LRO no_desc",
996}; 998};
997 999
1000#define NES_ETHTOOL_STAT_COUNT ARRAY_SIZE(nes_ethtool_stringset)
998 1001
999/** 1002/**
1000 * nes_netdev_get_rx_csum 1003 * nes_netdev_get_rx_csum
@@ -1189,6 +1192,9 @@ static void nes_netdev_get_ethtool_stats(struct net_device *netdev,
1189 target_stat_values[52] = int_mod_cq_depth_32; 1192 target_stat_values[52] = int_mod_cq_depth_32;
1190 target_stat_values[53] = int_mod_cq_depth_128; 1193 target_stat_values[53] = int_mod_cq_depth_128;
1191 target_stat_values[54] = int_mod_cq_depth_256; 1194 target_stat_values[54] = int_mod_cq_depth_256;
1195 target_stat_values[55] = nesvnic->lro_mgr.stats.aggregated;
1196 target_stat_values[56] = nesvnic->lro_mgr.stats.flushed;
1197 target_stat_values[57] = nesvnic->lro_mgr.stats.no_desc;
1192 1198
1193} 1199}
1194 1200
@@ -1454,6 +1460,8 @@ static struct ethtool_ops nes_ethtool_ops = {
1454 .set_sg = ethtool_op_set_sg, 1460 .set_sg = ethtool_op_set_sg,
1455 .get_tso = ethtool_op_get_tso, 1461 .get_tso = ethtool_op_get_tso,
1456 .set_tso = ethtool_op_set_tso, 1462 .set_tso = ethtool_op_set_tso,
1463 .get_flags = ethtool_op_get_flags,
1464 .set_flags = ethtool_op_set_flags,
1457}; 1465};
1458 1466
1459 1467