Lines Matching full:keys

15  *	@keys: flow_keys of ipv4 5tuple
21 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq) in enic_addfltr_5t() argument
26 switch (keys->basic.ip_proto) { in enic_addfltr_5t()
38 data.u.ipv4.src_addr = ntohl(keys->addrs.v4addrs.src); in enic_addfltr_5t()
39 data.u.ipv4.dst_addr = ntohl(keys->addrs.v4addrs.dst); in enic_addfltr_5t()
40 data.u.ipv4.src_port = ntohs(keys->ports.src); in enic_addfltr_5t()
41 data.u.ipv4.dst_port = ntohs(keys->ports.dst); in enic_addfltr_5t()
162 if (tpos->keys.addrs.v4addrs.src == k->addrs.v4addrs.src && in htbl_key_search()
163 tpos->keys.addrs.v4addrs.dst == k->addrs.v4addrs.dst && in htbl_key_search()
164 tpos->keys.ports.ports == k->ports.ports && in htbl_key_search()
165 tpos->keys.basic.ip_proto == k->basic.ip_proto && in htbl_key_search()
166 tpos->keys.basic.n_proto == k->basic.n_proto) in htbl_key_search()
174 struct flow_keys keys; in enic_rx_flow_steer() local
181 res = skb_flow_dissect_flow_keys(skb, &keys, 0); in enic_rx_flow_steer()
182 if (!res || keys.basic.n_proto != htons(ETH_P_IP) || in enic_rx_flow_steer()
183 (keys.basic.ip_proto != IPPROTO_TCP && in enic_rx_flow_steer()
184 keys.basic.ip_proto != IPPROTO_UDP)) in enic_rx_flow_steer()
189 n = htbl_key_search(&enic->rfs_h.ht_head[tbl_idx], &keys); in enic_rx_flow_steer()
214 res = enic_addfltr_5t(enic, &keys, rxq_index); in enic_rx_flow_steer()
224 res = enic_addfltr_5t(enic, &keys, rxq_index); in enic_rx_flow_steer()
267 res = enic_addfltr_5t(enic, &keys, rxq_index); in enic_rx_flow_steer()
276 n->keys = keys; in enic_rx_flow_steer()