mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 07:50:43 +03:00
[netdevice] Add maximum packet length as a net device property
Currently this length is set at device allocation time, and is never changed.
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user