• Jon Paul Maloy's avatar
    tipc: change signature of tunnelling reception function · 3bb53380
    Jon Paul Maloy authored
    After the earlier commits in this series related to the function
    tipc_link_tunnel_rcv(), we can now go further and simplify its
    signature.
    
    The function now consumes all DUPLICATE packets, and only returns such
    ORIGINAL packets that are ready for immediate delivery, i.e., no
    more link level protocol processing needs to be done by the caller.
    As a consequence, the the caller, tipc_rcv(), does not access the link
    pointer after call return, and it becomes unnecessary to pass a link
    pointer reference in the call. Instead, we now only pass it the tunnel
    link's owner node, which is sufficient to find the destination link for
    the tunnelled packet.
    Signed-off-by: default avatarJon Maloy <jon.maloy@ericsson.com>
    Reviewed-by: default avatarYing Xue <ying.xue@windriver.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3bb53380
link.c 73.3 KB