[infiniband] Centralise assumption of 2048-byte payloads

IPoIB and the SMA have separate constants for the packet size to be
used to I/O buffer allocations.  Merge these into the single
IB_MAX_PAYLOAD_SIZE constant.

(Various other points in the Infiniband stack have hard-coded
assumptions of a 2048-byte payload; we don't currently support
variable MTUs.)
This commit is contained in:
Michael Brown
2009-07-17 23:06:33 +01:00
parent 7ba33f7826
commit 1f5c0239b4
8 changed files with 22 additions and 18 deletions
-3
View File
@@ -10,9 +10,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <gpxe/infiniband.h>
/** IPoIB packet length */
#define IPOIB_PKT_LEN 2048
/** IPoIB MAC address length */
#define IPOIB_ALEN 20