cxgbe: fix allocated size for RSS table
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Tue, 19 Jan 2016 10:17:07 +0000 (15:47 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 15:51:19 +0000 (16:51 +0100)
commit8dca8cc5c6be70ef5b3826ffdcfdc5b2cf4fc82c
tree5ca3a722d58e05034b269e82d829002aa0255e79
parent9ec8127c3df400cffca48e5be547ce7a227d3e86
cxgbe: fix allocated size for RSS table

The size of each entry in the port's rss table is actually 2 bytes
and not 1 byte. A segfault occurs when accessing part of port 0's rss
table because it gets overwritten by subsequent port 1's part of the
rss table. Fix by setting the size of each entry appropriately.

Fixes: 92c8a63223e5 ("cxgbe: add device configuration and Rx support")

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
doc/guides/rel_notes/release_16_04.rst
drivers/net/cxgbe/cxgbe_main.c