Lines Matching refs:fs
849 BUILD_BUG_ON(offsetof(struct compat_ethtool_rxnfc, fs.m_ext) + in ethtool_rxnfc_copy_from_compat()
850 sizeof(useraddr->fs.m_ext) != in ethtool_rxnfc_copy_from_compat()
851 offsetof(struct ethtool_rxnfc, fs.m_ext) + in ethtool_rxnfc_copy_from_compat()
852 sizeof(rxnfc->fs.m_ext)); in ethtool_rxnfc_copy_from_compat()
853 BUILD_BUG_ON(offsetof(struct compat_ethtool_rxnfc, fs.location) - in ethtool_rxnfc_copy_from_compat()
854 offsetof(struct compat_ethtool_rxnfc, fs.ring_cookie) != in ethtool_rxnfc_copy_from_compat()
855 offsetof(struct ethtool_rxnfc, fs.location) - in ethtool_rxnfc_copy_from_compat()
856 offsetof(struct ethtool_rxnfc, fs.ring_cookie)); in ethtool_rxnfc_copy_from_compat()
865 .fs = { in ethtool_rxnfc_copy_from_compat()
866 .flow_type = crxnfc.fs.flow_type, in ethtool_rxnfc_copy_from_compat()
867 .h_u = crxnfc.fs.h_u, in ethtool_rxnfc_copy_from_compat()
868 .h_ext = crxnfc.fs.h_ext, in ethtool_rxnfc_copy_from_compat()
869 .m_u = crxnfc.fs.m_u, in ethtool_rxnfc_copy_from_compat()
870 .m_ext = crxnfc.fs.m_ext, in ethtool_rxnfc_copy_from_compat()
871 .ring_cookie = crxnfc.fs.ring_cookie, in ethtool_rxnfc_copy_from_compat()
872 .location = crxnfc.fs.location, in ethtool_rxnfc_copy_from_compat()
904 .fs = { in ethtool_rxnfc_copy_to_compat()
905 .flow_type = rxnfc->fs.flow_type, in ethtool_rxnfc_copy_to_compat()
906 .h_u = rxnfc->fs.h_u, in ethtool_rxnfc_copy_to_compat()
907 .h_ext = rxnfc->fs.h_ext, in ethtool_rxnfc_copy_to_compat()
908 .m_u = rxnfc->fs.m_u, in ethtool_rxnfc_copy_to_compat()
909 .m_ext = rxnfc->fs.m_ext, in ethtool_rxnfc_copy_to_compat()
910 .ring_cookie = rxnfc->fs.ring_cookie, in ethtool_rxnfc_copy_to_compat()
911 .location = rxnfc->fs.location, in ethtool_rxnfc_copy_to_compat()
1162 if (cmd == ETHTOOL_SRXCLSRLINS && info.fs.flow_type & FLOW_RSS) { in ethtool_set_rxnfc()
1167 ethtool_get_flow_spec_ring(info.fs.ring_cookie)) in ethtool_set_rxnfc()
3553 const struct ethtool_rx_flow_spec *fs = input->fs; in ethtool_rx_flow_rule_create() local
3577 switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS)) { in ethtool_rx_flow_rule_create()
3581 ether_spec = &fs->h_u.ether_spec; in ethtool_rx_flow_rule_create()
3582 ether_m_spec = &fs->m_u.ether_spec; in ethtool_rx_flow_rule_create()
3608 v4_spec = &fs->h_u.tcp_ip4_spec; in ethtool_rx_flow_rule_create()
3609 v4_m_spec = &fs->m_u.tcp_ip4_spec; in ethtool_rx_flow_rule_create()
3657 v6_spec = &fs->h_u.tcp_ip6_spec; in ethtool_rx_flow_rule_create()
3658 v6_m_spec = &fs->m_u.tcp_ip6_spec; in ethtool_rx_flow_rule_create()
3708 switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS)) { in ethtool_rx_flow_rule_create()
3725 if (fs->flow_type & FLOW_EXT) { in ethtool_rx_flow_rule_create()
3726 const struct ethtool_flow_ext *ext_h_spec = &fs->h_ext; in ethtool_rx_flow_rule_create()
3727 const struct ethtool_flow_ext *ext_m_spec = &fs->m_ext; in ethtool_rx_flow_rule_create()
3759 if (fs->flow_type & FLOW_MAC_EXT) { in ethtool_rx_flow_rule_create()
3760 const struct ethtool_flow_ext *ext_h_spec = &fs->h_ext; in ethtool_rx_flow_rule_create()
3761 const struct ethtool_flow_ext *ext_m_spec = &fs->m_ext; in ethtool_rx_flow_rule_create()
3775 switch (fs->ring_cookie) { in ethtool_rx_flow_rule_create()
3784 if (fs->flow_type & FLOW_RSS) in ethtool_rx_flow_rule_create()
3787 act->queue.vf = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); in ethtool_rx_flow_rule_create()
3788 act->queue.index = ethtool_get_flow_spec_ring(fs->ring_cookie); in ethtool_rx_flow_rule_create()