Lines Matching refs:formatted

105 	switch (rule->filter.formatted.flow_type) {  in txgbe_get_ethtool_fdir_entry()
125 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in txgbe_get_ethtool_fdir_entry()
126 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in txgbe_get_ethtool_fdir_entry()
127 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in txgbe_get_ethtool_fdir_entry()
128 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in txgbe_get_ethtool_fdir_entry()
129 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in txgbe_get_ethtool_fdir_entry()
130 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in txgbe_get_ethtool_fdir_entry()
131 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in txgbe_get_ethtool_fdir_entry()
132 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in txgbe_get_ethtool_fdir_entry()
133 fsp->h_ext.vlan_etype = rule->filter.formatted.flex_bytes; in txgbe_get_ethtool_fdir_entry()
134 fsp->m_ext.vlan_etype = mask->formatted.flex_bytes; in txgbe_get_ethtool_fdir_entry()
135 fsp->h_ext.data[1] = htonl(rule->filter.formatted.vm_pool); in txgbe_get_ethtool_fdir_entry()
136 fsp->m_ext.data[1] = htonl(mask->formatted.vm_pool); in txgbe_get_ethtool_fdir_entry()
250 if (rule->filter.formatted.bkt_hash == in txgbe_match_ethtool_fdir_entry()
251 input->filter.formatted.bkt_hash && in txgbe_match_ethtool_fdir_entry()
285 (!input || rule->filter.formatted.bkt_hash != in txgbe_update_ethtool_fdir_entry()
286 input->filter.formatted.bkt_hash)) { in txgbe_update_ethtool_fdir_entry()
370 &input->filter.formatted.flow_type)) { in txgbe_add_ethtool_fdir_entry()
375 mask.formatted.flow_type = TXGBE_ATR_L4TYPE_IPV6_MASK | in txgbe_add_ethtool_fdir_entry()
378 if (input->filter.formatted.flow_type == TXGBE_ATR_FLOW_TYPE_IPV4) in txgbe_add_ethtool_fdir_entry()
379 mask.formatted.flow_type &= TXGBE_ATR_L4TYPE_IPV6_MASK; in txgbe_add_ethtool_fdir_entry()
382 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in txgbe_add_ethtool_fdir_entry()
383 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in txgbe_add_ethtool_fdir_entry()
384 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in txgbe_add_ethtool_fdir_entry()
385 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in txgbe_add_ethtool_fdir_entry()
386 input->filter.formatted.src_port = fsp->h_u.tcp_ip4_spec.psrc; in txgbe_add_ethtool_fdir_entry()
387 mask.formatted.src_port = fsp->m_u.tcp_ip4_spec.psrc; in txgbe_add_ethtool_fdir_entry()
388 input->filter.formatted.dst_port = fsp->h_u.tcp_ip4_spec.pdst; in txgbe_add_ethtool_fdir_entry()
389 mask.formatted.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in txgbe_add_ethtool_fdir_entry()
392 input->filter.formatted.vm_pool = in txgbe_add_ethtool_fdir_entry()
394 mask.formatted.vm_pool = in txgbe_add_ethtool_fdir_entry()
396 input->filter.formatted.flex_bytes = in txgbe_add_ethtool_fdir_entry()
398 mask.formatted.flex_bytes = fsp->m_ext.vlan_etype; in txgbe_add_ethtool_fdir_entry()
401 switch (input->filter.formatted.flow_type) { in txgbe_add_ethtool_fdir_entry()
418 input->filter.formatted.vlan_id = htons(ptype); in txgbe_add_ethtool_fdir_entry()
419 if (mask.formatted.flow_type & TXGBE_ATR_L4TYPE_MASK) in txgbe_add_ethtool_fdir_entry()
420 mask.formatted.vlan_id = htons(0xFFFF); in txgbe_add_ethtool_fdir_entry()
422 mask.formatted.vlan_id = htons(0xFFF8); in txgbe_add_ethtool_fdir_entry()