Lines Matching refs:fields

321 				   void *key, void *mask, u64 *fields)  in dpaa2_eth_prep_eth_rule()  argument
329 *fields |= DPAA2_ETH_DIST_ETHTYPE; in dpaa2_eth_prep_eth_rule()
336 *fields |= DPAA2_ETH_DIST_ETHSRC; in dpaa2_eth_prep_eth_rule()
343 *fields |= DPAA2_ETH_DIST_ETHDST; in dpaa2_eth_prep_eth_rule()
351 void *key, void *mask, u64 *fields) in dpaa2_eth_prep_uip_rule() argument
363 *fields |= DPAA2_ETH_DIST_IPSRC; in dpaa2_eth_prep_uip_rule()
370 *fields |= DPAA2_ETH_DIST_IPDST; in dpaa2_eth_prep_uip_rule()
377 *fields |= DPAA2_ETH_DIST_IPPROTO; in dpaa2_eth_prep_uip_rule()
387 *fields |= DPAA2_ETH_DIST_L4SRC; in dpaa2_eth_prep_uip_rule()
392 *fields |= DPAA2_ETH_DIST_L4DST; in dpaa2_eth_prep_uip_rule()
399 *fields |= DPAA2_ETH_DIST_ETHTYPE; in dpaa2_eth_prep_uip_rule()
406 void *key, void *mask, u8 l4_proto, u64 *fields) in dpaa2_eth_prep_l4_rule() argument
417 *fields |= DPAA2_ETH_DIST_IPSRC; in dpaa2_eth_prep_l4_rule()
424 *fields |= DPAA2_ETH_DIST_IPDST; in dpaa2_eth_prep_l4_rule()
431 *fields |= DPAA2_ETH_DIST_L4SRC; in dpaa2_eth_prep_l4_rule()
438 *fields |= DPAA2_ETH_DIST_L4DST; in dpaa2_eth_prep_l4_rule()
445 *fields |= DPAA2_ETH_DIST_ETHTYPE; in dpaa2_eth_prep_l4_rule()
450 *fields |= DPAA2_ETH_DIST_IPPROTO; in dpaa2_eth_prep_l4_rule()
457 void *key, void *mask, u64 *fields) in dpaa2_eth_prep_ext_rule() argument
468 *fields |= DPAA2_ETH_DIST_VLAN; in dpaa2_eth_prep_ext_rule()
476 void *key, void *mask, u64 *fields) in dpaa2_eth_prep_mac_ext_rule() argument
484 *fields |= DPAA2_ETH_DIST_ETHDST; in dpaa2_eth_prep_mac_ext_rule()
491 void *mask, u64 *fields) in dpaa2_eth_prep_cls_rule() argument
498 key, mask, fields); in dpaa2_eth_prep_cls_rule()
502 &fs->m_u.usr_ip4_spec, key, mask, fields); in dpaa2_eth_prep_cls_rule()
506 key, mask, IPPROTO_TCP, fields); in dpaa2_eth_prep_cls_rule()
510 key, mask, IPPROTO_UDP, fields); in dpaa2_eth_prep_cls_rule()
515 IPPROTO_SCTP, fields); in dpaa2_eth_prep_cls_rule()
525 err = dpaa2_eth_prep_ext_rule(&fs->h_ext, &fs->m_ext, key, mask, fields); in dpaa2_eth_prep_cls_rule()
532 mask, fields); in dpaa2_eth_prep_cls_rule()
549 u64 fields = 0; in dpaa2_eth_do_cls_rule() local
565 err = dpaa2_eth_prep_cls_rule(fs, key_buf, key_buf + rule_cfg.key_size, &fields); in dpaa2_eth_do_cls_rule()
580 err = dpaa2_eth_set_cls(net_dev, fields); in dpaa2_eth_do_cls_rule()
584 priv->rx_cls_fields = fields; in dpaa2_eth_do_cls_rule()
585 } else if (priv->rx_cls_fields != fields) { in dpaa2_eth_do_cls_rule()
591 dpaa2_eth_cls_trim_rule(key_buf, fields); in dpaa2_eth_do_cls_rule()
592 rule_cfg.key_size = dpaa2_eth_cls_key_size(fields); in dpaa2_eth_do_cls_rule()