diff options
author | Divy Le Ray <divy@chelsio.com> | 2007-12-17 21:47:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:07:22 -0500 |
commit | b881955b7d045e7486e9af08398242aeb7199f67 (patch) | |
tree | fadf96f161a8a03bd285c4b63140407ab5f527d9 /drivers/net/cxgb3/cxgb3_offload.c | |
parent | 06daa168b681797c91ce1fd567d706b9b84738e2 (diff) |
cxgb3 - parity initialization for T3C adapters.
Add parity initialization for T3C adapters.
Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_offload.c')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_offload.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.c b/drivers/net/cxgb3/cxgb3_offload.c index 7e5892f1a9db..d48c396bdabb 100644 --- a/drivers/net/cxgb3/cxgb3_offload.c +++ b/drivers/net/cxgb3/cxgb3_offload.c | |||
@@ -403,8 +403,6 @@ static int cxgb_offload_ctl(struct t3cdev *tdev, unsigned int req, void *data) | |||
403 | static int rx_offload_blackhole(struct t3cdev *dev, struct sk_buff **skbs, | 403 | static int rx_offload_blackhole(struct t3cdev *dev, struct sk_buff **skbs, |
404 | int n) | 404 | int n) |
405 | { | 405 | { |
406 | CH_ERR(tdev2adap(dev), "%d unexpected offload packets, first data %u\n", | ||
407 | n, ntohl(*(__be32 *)skbs[0]->data)); | ||
408 | while (n--) | 406 | while (n--) |
409 | dev_kfree_skb_any(skbs[n]); | 407 | dev_kfree_skb_any(skbs[n]); |
410 | return 0; | 408 | return 0; |
@@ -634,6 +632,18 @@ static int do_l2t_write_rpl(struct t3cdev *dev, struct sk_buff *skb) | |||
634 | return CPL_RET_BUF_DONE; | 632 | return CPL_RET_BUF_DONE; |
635 | } | 633 | } |
636 | 634 | ||
635 | static int do_rte_write_rpl(struct t3cdev *dev, struct sk_buff *skb) | ||
636 | { | ||
637 | struct cpl_rte_write_rpl *rpl = cplhdr(skb); | ||
638 | |||
639 | if (rpl->status != CPL_ERR_NONE) | ||
640 | printk(KERN_ERR | ||
641 | "Unexpected RTE_WRITE_RPL status %u for entry %u\n", | ||
642 | rpl->status, GET_TID(rpl)); | ||
643 | |||
644 | return CPL_RET_BUF_DONE; | ||
645 | } | ||
646 | |||
637 | static int do_act_open_rpl(struct t3cdev *dev, struct sk_buff *skb) | 647 | static int do_act_open_rpl(struct t3cdev *dev, struct sk_buff *skb) |
638 | { | 648 | { |
639 | struct cpl_act_open_rpl *rpl = cplhdr(skb); | 649 | struct cpl_act_open_rpl *rpl = cplhdr(skb); |
@@ -1257,6 +1267,7 @@ void __init cxgb3_offload_init(void) | |||
1257 | 1267 | ||
1258 | t3_register_cpl_handler(CPL_SMT_WRITE_RPL, do_smt_write_rpl); | 1268 | t3_register_cpl_handler(CPL_SMT_WRITE_RPL, do_smt_write_rpl); |
1259 | t3_register_cpl_handler(CPL_L2T_WRITE_RPL, do_l2t_write_rpl); | 1269 | t3_register_cpl_handler(CPL_L2T_WRITE_RPL, do_l2t_write_rpl); |
1270 | t3_register_cpl_handler(CPL_RTE_WRITE_RPL, do_rte_write_rpl); | ||
1260 | t3_register_cpl_handler(CPL_PASS_OPEN_RPL, do_stid_rpl); | 1271 | t3_register_cpl_handler(CPL_PASS_OPEN_RPL, do_stid_rpl); |
1261 | t3_register_cpl_handler(CPL_CLOSE_LISTSRV_RPL, do_stid_rpl); | 1272 | t3_register_cpl_handler(CPL_CLOSE_LISTSRV_RPL, do_stid_rpl); |
1262 | t3_register_cpl_handler(CPL_PASS_ACCEPT_REQ, do_cr); | 1273 | t3_register_cpl_handler(CPL_PASS_ACCEPT_REQ, do_cr); |