Release 4.18 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h
  
  
  
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright(c) 1999 - 2018 Intel Corporation. */
#ifndef _IXGBE_MODEL_H_
#define _IXGBE_MODEL_H_
#include "ixgbe.h"
#include "ixgbe_type.h"
struct ixgbe_mat_field {
	
unsigned int off;
	
int (*val)(struct ixgbe_fdir_filter *input,
		   union ixgbe_atr_input *mask,
		   u32 val, u32 m);
	
unsigned int type;
};
struct ixgbe_jump_table {
	
struct ixgbe_mat_field *mat;
	
struct ixgbe_fdir_filter *input;
	
union ixgbe_atr_input *mask;
	
u32 link_hdl;
	
unsigned long child_loc_map[32];
};
#define IXGBE_MAX_HW_ENTRIES 2045
static inline int ixgbe_mat_prgm_sip(struct ixgbe_fdir_filter *input,
				     union ixgbe_atr_input *mask,
				     u32 val, u32 m)
{
	input->filter.formatted.src_ip[0] = (__force __be32)val;
	mask->formatted.src_ip[0] = (__force __be32)m;
	return 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| John Fastabend | 50 | 86.21% | 2 | 66.67% | 
| Cathy Zhou | 8 | 13.79% | 1 | 33.33% | 
| Total | 58 | 100.00% | 3 | 100.00% | 
static inline int ixgbe_mat_prgm_dip(struct ixgbe_fdir_filter *input,
				     union ixgbe_atr_input *mask,
				     u32 val, u32 m)
{
	input->filter.formatted.dst_ip[0] = (__force __be32)val;
	mask->formatted.dst_ip[0] = (__force __be32)m;
	return 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| John Fastabend | 50 | 86.21% | 2 | 66.67% | 
| Cathy Zhou | 8 | 13.79% | 1 | 33.33% | 
| Total | 58 | 100.00% | 3 | 100.00% | 
static struct ixgbe_mat_field ixgbe_ipv4_fields[] = {
	{ .off = 12, .val = ixgbe_mat_prgm_sip,
	  .type = IXGBE_ATR_FLOW_TYPE_IPV4},
	{ .off = 16, .val = ixgbe_mat_prgm_dip,
	  .type = IXGBE_ATR_FLOW_TYPE_IPV4},
	{ .val = NULL } /* terminal node */
};
static inline int ixgbe_mat_prgm_ports(struct ixgbe_fdir_filter *input,
				       union ixgbe_atr_input *mask,
				       u32 val, u32 m)
{
	input->filter.formatted.src_port = (__force __be16)(val & 0xffff);
	mask->formatted.src_port = (__force __be16)(m & 0xffff);
	input->filter.formatted.dst_port = (__force __be16)(val >> 16);
	mask->formatted.dst_port = (__force __be16)(m >> 16);
	return 0;
}Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| John Fastabend | 65 | 69.15% | 2 | 50.00% | 
| Cathy Zhou | 24 | 25.53% | 1 | 25.00% | 
| Sridhar Samudrala | 5 | 5.32% | 1 | 25.00% | 
| Total | 94 | 100.00% | 4 | 100.00% | 
;
static struct ixgbe_mat_field ixgbe_tcp_fields[] = {
	{.off = 0, .val = ixgbe_mat_prgm_ports,
	 .type = IXGBE_ATR_FLOW_TYPE_TCPV4},
	{ .val = NULL } /* terminal node */
};
static struct ixgbe_mat_field ixgbe_udp_fields[] = {
	{.off = 0, .val = ixgbe_mat_prgm_ports,
	 .type = IXGBE_ATR_FLOW_TYPE_UDPV4},
	{ .val = NULL } /* terminal node */
};
struct ixgbe_nexthdr {
	/* offset, shift, and mask of position to next header */
	
unsigned int o;
	
u32 s;
	
u32 m;
	/* match criteria to make this jump*/
	
unsigned int off;
	
u32 val;
	
u32 mask;
	/* location of jump to make */
	
struct ixgbe_mat_field *jump;
};
static struct ixgbe_nexthdr ixgbe_ipv4_jumps[] = {
	{ .o = 0, .s = 6, .m = 0xf,
	  .off = 8, .val = 0x600, .mask = 0xff00, .jump = ixgbe_tcp_fields},
	{ .o = 0, .s = 6, .m = 0xf,
	  .off = 8, .val = 0x1100, .mask = 0xff00, .jump = ixgbe_udp_fields},
	{ .jump = NULL } /* terminal node */
};
#endif /* _IXGBE_MODEL_H_ */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| John Fastabend | 385 | 71.69% | 2 | 22.22% | 
| Amritha Nambiar | 104 | 19.37% | 3 | 33.33% | 
| Cathy Zhou | 40 | 7.45% | 1 | 11.11% | 
| Sridhar Samudrala | 6 | 1.12% | 1 | 11.11% | 
| Jeff Kirsher | 2 | 0.37% | 2 | 22.22% | 
| Total | 537 | 100.00% | 9 | 100.00% | 
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.