Lines Matching refs:csk

91 	struct cxgbit_sock *csk;
96 list_for_each_entry(csk, &cdev->cskq.list, list) {
101 spin_lock_bh(&csk->rxq.lock);
102 __skb_queue_tail(&csk->rxq, skb);
103 if (skb_queue_len(&csk->rxq) == 1)
105 spin_unlock_bh(&csk->rxq.lock);
108 wake_up(&csk->waitq);
166 cxgbit_process_ddpvld(struct cxgbit_sock *csk, struct cxgbit_lro_pdu_cb *pdu_cb,
171 pr_info("tid 0x%x, status 0x%x, hcrc bad.\n", csk->tid, ddpvld);
176 pr_info("tid 0x%x, status 0x%x, dcrc bad.\n", csk->tid, ddpvld);
181 pr_info("tid 0x%x, status 0x%x, pad bad.\n", csk->tid, ddpvld);
197 cxgbit_process_ddpvld(lro_cb->csk, pdu_cb, be32_to_cpu(cpl->ddpvld));
284 cxgbit_process_ddpvld(lro_cb->csk, pdu_cb,
309 cxgbit_lro_init_skb(struct cxgbit_sock *csk, u8 op, const struct pkt_gl *gl,
326 cxgbit_get_csk(csk);
328 lro_cb->csk = csk;
333 static void cxgbit_queue_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb)
337 spin_lock(&csk->rxq.lock);
338 __skb_queue_tail(&csk->rxq, skb);
339 if (skb_queue_len(&csk->rxq) == 1)
341 spin_unlock(&csk->rxq.lock);
344 wake_up(&csk->waitq);
350 struct cxgbit_sock *csk = lro_cb->csk;
352 csk->lro_skb = NULL;
355 cxgbit_queue_lro_skb(csk, skb);
357 cxgbit_put_csk(csk);
372 cxgbit_lro_receive(struct cxgbit_sock *csk, u8 op, const __be64 *rsp,
379 if (!csk) {
380 pr_err("%s: csk NULL, op 0x%x.\n", __func__, op);
384 if (csk->lro_skb)
393 skb = cxgbit_lro_init_skb(csk, op, gl, rsp, napi);
397 csk->lro_skb = skb;
403 skb = csk->lro_skb;
434 struct cxgbit_sock *csk = NULL;
458 csk = lookup_tid(lldi->tids, tid);
464 if (csk && csk->lro_skb && lro_flush)
465 cxgbit_lro_flush(lro_mgr, csk->lro_skb);
471 if (!cxgbit_lro_receive(csk, op, rsp, NULL, lro_mgr,
493 if (!cxgbit_lro_receive(csk, op, rsp, gl, lro_mgr,
534 struct cxgbit_sock *csk;
540 list_for_each_entry(csk, &cdev->cskq.list, list) {
541 if (csk->port_id != port_id)
544 if (csk->com.local_addr.ss_family == AF_INET6) {
547 sock_in6 = (struct sockaddr_in6 *)&csk->com.local_addr;
552 sock_in = (struct sockaddr_in *)&csk->com.local_addr;
559 if (csk->dcb_priority == dcb_priority)
566 spin_lock(&csk->rxq.lock);
567 __skb_queue_tail(&csk->rxq, skb);
568 if (skb_queue_len(&csk->rxq) == 1)
570 spin_unlock(&csk->rxq.lock);
573 wake_up(&csk->waitq);