Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c632 int network_depth = 0; in mlx5e_lro_update_hdr() local
638 proto = __vlan_get_protocol(skb, eth->h_proto, &network_depth); in mlx5e_lro_update_hdr()
640 tot_len = cqe_bcnt - network_depth; in mlx5e_lro_update_hdr()
641 ip_p = skb->data + network_depth; in mlx5e_lro_update_hdr()
691 static inline bool is_last_ethertype_ip(struct sk_buff *skb, int *network_depth) in is_last_ethertype_ip() argument
695 ethertype = __vlan_get_protocol(skb, ethertype, network_depth); in is_last_ethertype_ip()
745 int network_depth = 0; in mlx5e_handle_csum() local
756 if (likely(is_last_ethertype_ip(skb, &network_depth))) { in mlx5e_handle_csum()
759 if (network_depth > ETH_HLEN) in mlx5e_handle_csum()
765 network_depth - ETH_HLEN, in mlx5e_handle_csum()