cxgb4: Handle clip return values
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 9 Dec 2015 11:46:35 +0000 (17:16 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Dec 2015 01:15:23 +0000 (20:15 -0500)
commiteb72f74f03125a3a80fb98f41e5aba55cad70c8c
treef5cc42a36e753a6687245fa64d9f542c9f4fbbac
parent515123e286b686d32256342318f20ff932ebac1b
cxgb4: Handle clip return values

Add a warn message when clip table overflows. If clip table isn't
allocated, return from cxgb4_clip_release() to avoid panic.
Disable offload if clip isn't enabled in the hardware.

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