Lines Matching refs:po
13 static int pdiag_put_info(const struct packet_sock *po, struct sk_buff *nlskb)
17 pinfo.pdi_index = po->ifindex;
18 pinfo.pdi_version = po->tp_version;
19 pinfo.pdi_reserve = po->tp_reserve;
20 pinfo.pdi_copy_thresh = po->copy_thresh;
21 pinfo.pdi_tstamp = READ_ONCE(po->tp_tstamp);
24 if (packet_sock_flag(po, PACKET_SOCK_RUNNING))
26 if (packet_sock_flag(po, PACKET_SOCK_AUXDATA))
28 if (packet_sock_flag(po, PACKET_SOCK_ORIGDEV))
30 if (READ_ONCE(po->vnet_hdr_sz))
32 if (packet_sock_flag(po, PACKET_SOCK_TP_LOSS))
38 static int pdiag_put_mclist(const struct packet_sock *po, struct sk_buff *nlskb)
48 for (ml = po->mclist; ml; ml = ml->next) {
98 static int pdiag_put_rings_cfg(struct packet_sock *po, struct sk_buff *skb)
102 mutex_lock(&po->pg_vec_lock);
103 ret = pdiag_put_ring(&po->rx_ring, po->tp_version,
106 ret = pdiag_put_ring(&po->tx_ring, po->tp_version,
108 mutex_unlock(&po->pg_vec_lock);
113 static int pdiag_put_fanout(struct packet_sock *po, struct sk_buff *nlskb)
118 if (po->fanout) {
121 val = (u32)po->fanout->id | ((u32)po->fanout->type << 16);
137 struct packet_sock *po = pkt_sk(sk);
146 rp->pdiag_num = ntohs(READ_ONCE(po->num));
151 pdiag_put_info(po, skb))
160 pdiag_put_mclist(po, skb))
164 pdiag_put_rings_cfg(po, skb))
168 pdiag_put_fanout(po, skb))