]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
RDMA/nes: Remove tx_free_list
authorFaisal Latif <faisal.latif@intel.com>
Thu, 25 Dec 2008 04:30:04 +0000 (20:30 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 25 Dec 2008 04:30:04 +0000 (20:30 -0800)
commite189062a8ca55b0a1843f0346c3fae1a47297c34
treeebbe8fad6d9708764de679a03d3de1aacd99e9d4
parent6098d107499e1335f899bfcb558253fb7ee4f73f
RDMA/nes: Remove tx_free_list

There is no lock protecting tx_free_list thus causing a system crash
when skb_dequeue() is called and the list is empty.  Since it did not give
any performance boost under heavy load, remove it to simplify the code.
Replace get_free_pkt() with dev_alloc_skb() to allocate MAX_CM_BUFFER skb
for connection establishment/teardown as well as MPA request/response.

Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_cm.c
drivers/infiniband/hw/nes/nes_cm.h