• Ido Schimmel's avatar
    inet: Refactor INET_ECN_decapsulate() · 28e45033
    Ido Schimmel authored
    Drivers that support tunnel decapsulation (IPinIP or NVE) need to
    configure the underlying device to conform to the behavior outlined in
    RFC 6040 with respect to the ECN bits.
    This behavior is implemented by INET_ECN_decapsulate() which requires an
    skb to be passed where the ECN CE bit can be potentially set. Since
    these drivers do not need to mark an skb, but only configure the device
    to do so, factor out the business logic to __INET_ECN_decapsulate() and
    potentially perform the marking in INET_ECN_decapsulate().
    This allows drivers to invoke __INET_ECN_decapsulate() and configure the
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Suggested-by: default avatarPetr Machata <petrm@mellanox.com>
    Reviewed-by: default avatarPetr Machata <petrm@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
inet_ecn.h 6.2 KB