> +static struct sk_buff *get_free_pkt(u32 pktsize)
> {
> - u32 hashkey = 0;
> -
> - hashkey = loc_addr + rem_addr + loc_port + rem_port;
> - hashkey = (hashkey % NES_CM_HASHTABLE_SIZE);
> -
> - return hashkey;
> + return dev_alloc_skb(pktsize);
> }
Given this, is there any reason to have get_free_pkt() at all? Why not
just use dev_alloc_skb() directly?
- R.
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general