Lines Matching refs:ol4_proto
740 static int hns3_get_l4_protocol(struct sk_buff *skb, u8 *ol4_proto, in hns3_get_l4_protocol() argument
765 *ol4_proto = l4_proto_tmp; in hns3_get_l4_protocol()
813 static void hns3_set_outer_l2l3l4(struct sk_buff *skb, u8 ol4_proto, in hns3_set_outer_l2l3l4() argument
853 if (ol4_proto == IPPROTO_UDP) in hns3_set_outer_l2l3l4()
856 else if (ol4_proto == IPPROTO_GRE) in hns3_set_outer_l2l3l4()
861 static int hns3_set_l2l3l4(struct sk_buff *skb, u8 ol4_proto, in hns3_set_l2l3l4() argument
866 u32 l4_proto = ol4_proto; in hns3_set_l2l3l4()
877 if (!(ol4_proto == IPPROTO_UDP || ol4_proto == IPPROTO_GRE)) { in hns3_set_l2l3l4()
891 hns3_set_outer_l2l3l4(skb, ol4_proto, ol_type_vlan_len_msec); in hns3_set_l2l3l4()
1060 u8 ol4_proto, il4_proto; in hns3_fill_skb_desc() local
1064 ret = hns3_get_l4_protocol(skb, &ol4_proto, &il4_proto); in hns3_fill_skb_desc()
1072 ret = hns3_set_l2l3l4(skb, ol4_proto, il4_proto, in hns3_fill_skb_desc()