Lines Matching refs:flow
1603 static int gfar_check_capability(struct ethtool_rx_flow_spec *flow, in gfar_check_capability() argument
1607 if (flow->flow_type & FLOW_EXT) { in gfar_check_capability()
1608 if (~flow->m_ext.data[0] || ~flow->m_ext.data[1]) in gfar_check_capability()
1611 if (~flow->m_ext.vlan_etype) in gfar_check_capability()
1615 if (flow->flow_type == IP_USER_FLOW) in gfar_check_capability()
1616 if (flow->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in gfar_check_capability()
1675 static void gfar_invert_masks(struct ethtool_rx_flow_spec *flow) in gfar_invert_masks() argument
1679 for (i = 0; i < sizeof(flow->m_u); i++) in gfar_invert_masks()
1680 flow->m_u.hdata[i] ^= 0xFF; in gfar_invert_masks()
1682 flow->m_ext.vlan_etype ^= cpu_to_be16(0xFFFF); in gfar_invert_masks()
1683 flow->m_ext.vlan_tci ^= cpu_to_be16(0xFFFF); in gfar_invert_masks()
1684 flow->m_ext.data[0] ^= cpu_to_be32(~0); in gfar_invert_masks()
1685 flow->m_ext.data[1] ^= cpu_to_be32(~0); in gfar_invert_masks()
1689 struct ethtool_rx_flow_spec *flow) in gfar_add_cls() argument
1697 memcpy(&temp->fs, flow, sizeof(temp->fs)); in gfar_add_cls()
1712 if (comp->fs.location > flow->location) { in gfar_add_cls()
1716 if (comp->fs.location == flow->location) { in gfar_add_cls()
1719 flow->location); in gfar_add_cls()