cxgb4: Reserve stid 0 for T4/T5 adapters
authorKumar Sanghvi <kumaras@chelsio.com>
Wed, 18 Dec 2013 11:08:19 +0000 (16:38 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Dec 2013 23:09:07 +0000 (18:09 -0500)
commitb6f8eaece6d5f0247931b6dac140e6cf876f48de
treeadc96c07143e74b153a33dfe65420531af4380bf
parent6eb3c2822e2c5ef8f1a215c44ac451653aec0c09
cxgb4: Reserve stid 0 for T4/T5 adapters

When creating offload server entries, an IPv6 passive connection request
can trigger a reply with a null STID, whereas the driver would expect
the reply 'STID to match the value used for the request.
This happens due to h/w limitation on T4 and T5.

This patch ensures that STID 0 is never used if the stid range starts
from zero.

Based on original work by Santosh Rastapur <santosh@chelsio.com>

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c