Home
last modified time | relevance | path

Searched refs:network_depth (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c1023 int network_depth = 0; in mlx5e_lro_update_hdr() local
1029 proto = __vlan_get_protocol(skb, eth->h_proto, &network_depth); in mlx5e_lro_update_hdr()
1031 tot_len = cqe_bcnt - network_depth; in mlx5e_lro_update_hdr()
1032 ip_p = skb->data + network_depth; in mlx5e_lro_update_hdr()
1218 static inline bool is_last_ethertype_ip(struct sk_buff *skb, int *network_depth, in is_last_ethertype_ip() argument
1222 *proto = __vlan_get_protocol(skb, *proto, network_depth); in is_last_ethertype_ip()
1225 return pskb_may_pull(skb, *network_depth + sizeof(struct iphdr)); in is_last_ethertype_ip()
1228 return pskb_may_pull(skb, *network_depth + sizeof(struct ipv6hdr)); in is_last_ethertype_ip()
1235 int network_depth = 0; in mlx5e_enable_ecn() local
1240 if (unlikely(!is_last_ethertype_ip(skb, &network_depth, &proto))) in mlx5e_enable_ecn()
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c995 int network_depth = 0; in otx2_ptp_is_sync() local
1016 proto = __vlan_get_protocol(skb, eth->h_proto, &network_depth); in otx2_ptp_is_sync()
1021 if (network_depth) in otx2_ptp_is_sync()
1022 *offset = network_depth; in otx2_ptp_is_sync()