aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/cxgb3_offload.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_offload.c')
-rw-r--r--drivers/net/cxgb3/cxgb3_offload.c15
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)
403static int rx_offload_blackhole(struct t3cdev *dev, struct sk_buff **skbs, 403static 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
635static 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
637static int do_act_open_rpl(struct t3cdev *dev, struct sk_buff *skb) 647static 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);