Lines Matching refs:csk

98 	struct cxgbit_sock *csk;
103 list_for_each_entry(csk, &cdev->cskq.list, list) {
108 spin_lock_bh(&csk->rxq.lock);
109 __skb_queue_tail(&csk->rxq, skb);
110 if (skb_queue_len(&csk->rxq) == 1)
112 spin_unlock_bh(&csk->rxq.lock);
115 wake_up(&csk->waitq);
173 cxgbit_process_ddpvld(struct cxgbit_sock *csk, struct cxgbit_lro_pdu_cb *pdu_cb,
178 pr_info("tid 0x%x, status 0x%x, hcrc bad.\n", csk->tid, ddpvld);
183 pr_info("tid 0x%x, status 0x%x, dcrc bad.\n", csk->tid, ddpvld);
188 pr_info("tid 0x%x, status 0x%x, pad bad.\n", csk->tid, ddpvld);
204 cxgbit_process_ddpvld(lro_cb->csk, pdu_cb, be32_to_cpu(cpl->ddpvld));
291 cxgbit_process_ddpvld(lro_cb->csk, pdu_cb,
316 cxgbit_lro_init_skb(struct cxgbit_sock *csk, u8 op, const struct pkt_gl *gl,
333 cxgbit_get_csk(csk);
335 lro_cb->csk = csk;
340 static void cxgbit_queue_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb)
344 spin_lock(&csk->rxq.lock);
345 __skb_queue_tail(&csk->rxq, skb);
346 if (skb_queue_len(&csk->rxq) == 1)
348 spin_unlock(&csk->rxq.lock);
351 wake_up(&csk->waitq);
357 struct cxgbit_sock *csk = lro_cb->csk;
359 csk->lro_skb = NULL;
362 cxgbit_queue_lro_skb(csk, skb);
364 cxgbit_put_csk(csk);
379 cxgbit_lro_receive(struct cxgbit_sock *csk, u8 op, const __be64 *rsp,
386 if (!csk) {
387 pr_err("%s: csk NULL, op 0x%x.\n", __func__, op);
391 if (csk->lro_skb)
400 skb = cxgbit_lro_init_skb(csk, op, gl, rsp, napi);
404 csk->lro_skb = skb;
410 skb = csk->lro_skb;
441 struct cxgbit_sock *csk = NULL;
465 csk = lookup_tid(lldi->tids, tid);
471 if (csk && csk->lro_skb && lro_flush)
472 cxgbit_lro_flush(lro_mgr, csk->lro_skb);
478 if (!cxgbit_lro_receive(csk, op, rsp, NULL, lro_mgr,
500 if (!cxgbit_lro_receive(csk, op, rsp, gl, lro_mgr,
541 struct cxgbit_sock *csk;
547 list_for_each_entry(csk, &cdev->cskq.list, list) {
548 if (csk->port_id != port_id)
551 if (csk->com.local_addr.ss_family == AF_INET6) {
554 sock_in6 = (struct sockaddr_in6 *)&csk->com.local_addr;
559 sock_in = (struct sockaddr_in *)&csk->com.local_addr;
566 if (csk->dcb_priority == dcb_priority)
573 spin_lock(&csk->rxq.lock);
574 __skb_queue_tail(&csk->rxq, skb);
575 if (skb_queue_len(&csk->rxq) == 1)
577 spin_unlock(&csk->rxq.lock);
580 wake_up(&csk->waitq);