aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/realtek
diff options
context:
space:
mode:
authorXie He <xie.he.0141@gmail.com>2021-02-05 14:41:24 -0800
committerJakub Kicinski <kuba@kernel.org>2021-02-06 14:59:28 -0800
commit21c85974aab7211619d39364990427af543c88ac (patch)
tree849d996f56e276eac84aa7ae790313ce97027650 /drivers/net/ethernet/realtek
parentMerge branch 'net-ipa-a-mix-of-small-improvements' (diff)
downloadlinux-dev-21c85974aab7211619d39364990427af543c88ac.tar.xz
linux-dev-21c85974aab7211619d39364990427af543c88ac.zip
net/packet: Improve the comment about LL header visibility criteria
The "dev_has_header" function, recently added in commit d549699048b4 ("net/packet: fix packet receive on L3 devices without visible hard header"), is more accurate as criteria for determining whether a device exposes the LL header to upper layers, because in addition to dev->header_ops, it also checks for dev->header_ops->create. When transmitting an skb on a device, dev_hard_header can be called to generate an LL header. dev_hard_header will only generate a header if dev->header_ops->create is present. Signed-off-by: Xie He <xie.he.0141@gmail.com> Acked-by: Willem de Bruijn <willemb@google.com> Link: https://lore.kernel.org/r/20210205224124.21345-1-xie.he.0141@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/realtek')
0 files changed, 0 insertions, 0 deletions