Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: add helper eth_set_protocol #192

Closed
wants to merge 2 commits into from
Closed

Commits on Oct 6, 2020

  1. adding ci files

    kernel-patches-bot committed Oct 6, 2020
    Configuration menu
    Copy the full SHA
    48b5a93 View commit details
    Browse the repository at this point in the history
  2. net: add helper eth_set_protocol

    In all cases I've seen eth_type_trans() is used as in the new helper.
    Biggest benefit is improved readability when replacing statements like
    the following:
    desc->skb->protocol = eth_type_trans(desc->skb, priv->dev);
    
    Coccinelle tells me that using the new helper tree-wide would touch
    313 files. Therefore I'd like to check for feedback before bothering
    100+ maintainers.
    
    Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
    hkallweit authored and kernel-patches-bot committed Oct 6, 2020
    Configuration menu
    Copy the full SHA
    0eba41c View commit details
    Browse the repository at this point in the history