diff options
author | Vladislav Zolotarov <vladz@broadcom.com> | 2011-02-06 11:21:02 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-06 11:21:02 -0800 |
commit | a8c94b9188bf6012d9b6c3d37f324bd6c7d2924e (patch) | |
tree | 3e099f4ab52247d52c842bc7f6a99c07ca09af40 /drivers/net/bnx2x/bnx2x_ethtool.c | |
parent | 7eb38527c4e485923fa3f87d11ce11b4e6ebf807 (diff) | |
download | op-kernel-dev-a8c94b9188bf6012d9b6c3d37f324bd6c7d2924e.zip op-kernel-dev-a8c94b9188bf6012d9b6c3d37f324bd6c7d2924e.tar.gz |
bnx2x: MTU for FCoE L2 ring
Always configure an FCoE L2 ring with a mini-jumbo MTU size (2500).
To do that we had to move the rx_buf_size parameter from per
function level to a per ring level.
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_ethtool.c')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x_ethtool.c b/drivers/net/bnx2x/bnx2x_ethtool.c index 5b44a8b..816fef6 100644 --- a/drivers/net/bnx2x/bnx2x_ethtool.c +++ b/drivers/net/bnx2x/bnx2x_ethtool.c @@ -1618,7 +1618,7 @@ static int bnx2x_run_loopback(struct bnx2x *bp, int loopback_mode, u8 link_up) /* prepare the loopback packet */ pkt_size = (((bp->dev->mtu < ETH_MAX_PACKET_SIZE) ? bp->dev->mtu : ETH_MAX_PACKET_SIZE) + ETH_HLEN); - skb = netdev_alloc_skb(bp->dev, bp->rx_buf_size); + skb = netdev_alloc_skb(bp->dev, fp_rx->rx_buf_size); if (!skb) { rc = -ENOMEM; goto test_loopback_exit; |