diff options
author | Michael Brown | 2008-10-15 01:49:59 +0200 |
---|---|---|
committer | Michael Brown | 2008-10-16 06:11:47 +0200 |
commit | 832668105e22c42f965970078124cdc2c556ac0d (patch) | |
tree | 67984083b52c5fd499f19d9fd9f82b834d03e55b /src/drivers | |
parent | [efi] Fix linker script for ld 2.17.50.0.9 (diff) | |
download | ipxe-832668105e22c42f965970078124cdc2c556ac0d.tar.gz ipxe-832668105e22c42f965970078124cdc2c556ac0d.tar.xz ipxe-832668105e22c42f965970078124cdc2c556ac0d.zip |
[netdevice] Add maximum packet length as a net device property
Currently this length is set at device allocation time, and is never
changed.
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/net/ipoib.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/drivers/net/ipoib.c b/src/drivers/net/ipoib.c index 16b2a0c8..9c9bc918 100644 --- a/src/drivers/net/ipoib.c +++ b/src/drivers/net/ipoib.c @@ -33,9 +33,6 @@ * IP over Infiniband */ -/** IPoIB MTU */ -#define IPOIB_MTU 2048 - /** Number of IPoIB data send work queue entries */ #define IPOIB_DATA_NUM_SEND_WQES 2 @@ -727,7 +724,7 @@ static void ipoib_refill_recv ( struct ipoib_device *ipoib, int rc; while ( qset->recv_fill < qset->recv_max_fill ) { - iobuf = alloc_iob ( IPOIB_MTU ); + iobuf = alloc_iob ( IPOIB_PKT_LEN ); if ( ! iobuf ) break; if ( ( rc = ib_post_recv ( ibdev, qset->qp, iobuf ) ) != 0 ) { |