src/dpdk/drivers/net/iavf/iavf_hash.c
static void
iavf_refine_proto_hdrs_gtpu(struct virtchnl_proto_hdrs *proto_hdrs,
			    uint64_t rss_type)
{
	struct virtchnl_proto_hdr *hdr;
	int i;

	if (!(rss_type & ETH_RSS_GTPU))
		return;

	for (i = 0; i < proto_hdrs->count; i++) {
		hdr = &proto_hdrs->proto_hdr[i];
		switch (hdr->type) {
		case VIRTCHNL_PROTO_HDR_GTPU_IP:
			REFINE_PROTO_FLD(ADD, GTPU_IP_TEID);
			break;
		default:
			break;
		}
	}
}
/* refine proto hdrs base on gtpu rss type */
refine proto hdrs base on gtpu rss type
refine proto hdrs base on gtpu rss type
static void
iavf_refine_proto_hdrs_gtpu(struct virtchnl_proto_hdrs *proto_hdrs,
			    uint64_t rss_type)
{
	struct virtchnl_proto_hdr *hdr;
	int i;
	if (!(rss_type & ETH_RSS_GTPU))
		return;
	for (i = 0; i < proto_hdrs->count; i++) {
		hdr = &proto_hdrs->proto_hdr[i];
		switch (hdr->type) {
		case VIRTCHNL_PROTO_HDR_GTPU_IP:
			REFINE_PROTO_FLD(ADD, GTPU_IP_TEID);
			break;
		default:
			break;
		}
	}
}
static void iavf_refine_proto_hdrs_gtpu ( struct virtchnl_proto_hdrs * proto_hdrs , uint64_t rss_type ) { struct virtchnl_proto_hdr * hdr ; int i ; if ( ! ( rss_type & ETH_RSS_GTPU ) ) return ; for ( i = 0 ; i < proto_hdrs -> count ; i ++ ) { hdr = & proto_hdrs -> proto_hdr [ i ] ; switch ( hdr -> type ) { case VIRTCHNL_PROTO_HDR_GTPU_IP : REFINE_PROTO_FLD ( ADD , GTPU_IP_TEID ) ; break ; default : break ; } } }
refine proto hdrs base on gtpu rss type
refine proto hdrs base on gtpu rss type