summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorBob Sharp <bsharp@neteffect.com>2008-09-26 22:08:10 +0200
committerRoland Dreier <rolandd@cisco.com>2008-10-01 00:35:48 +0200
commita06fd26d48eb3304db246f3f4a0aa5a50afb10ec (patch)
tree79828ed068f03a7608b8fc99b0a9330114a7e800 /drivers/infiniband
parentRDMA/nes: Enable MC/UC after changing MTU (diff)
downloadlinux-a06fd26d48eb3304db246f3f4a0aa5a50afb10ec.tar.xz
linux-a06fd26d48eb3304db246f3f4a0aa5a50afb10ec.zip
RDMA/nes: Correct MAX TSO frags value
Use correct define for max TSO fragments. Signed-off-by: Bob Sharp <bsharp@neteffect.com> Signed-off-by: Sweta Bhatt <sweta.bhatt@einfochips.com> Signed-off-by: Chien Tung <ctung@neteffect.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/nes/nes_nic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index 77e258a57d4c..96db599d9a4e 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -437,7 +437,7 @@ static int nes_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev)
struct nes_hw_nic_sq_wqe *nic_sqe;
struct tcphdr *tcph;
/* struct udphdr *udph; */
-#define NES_MAX_TSO_FRAGS 18
+#define NES_MAX_TSO_FRAGS MAX_SKB_FRAGS
/* 64K segment plus overflow on each side */
dma_addr_t tso_bus_address[NES_MAX_TSO_FRAGS];
dma_addr_t bus_address;