/* must only be called if ipath_pd is known to be allocated  */
static void* ipath_get_egrbuf(struct ipath_devdata *dd, u32 bufnum)
/* must only be called if ipath_pd is known to be allocated  */
static void* ipath_get_egrbuf(struct ipath_devdata *dd, u32 bufnum)
{
	return dd->ipath_port0_skbinfo ?
		(void *) dd->ipath_port0_skbinfo[bufnum].skb->data : NULL;
}