• Vlad Buslov's avatar
    net: flow_offload: provision conntrack info in ct_metadata · 29744a10
    Vlad Buslov authored
    In order to offload connections in other states besides "established" the
    driver offload callbacks need to have access to connection conntrack info.
    Flow offload intermediate representation data structure already contains
    that data encoded in 'cookie' field, so just reuse it in the drivers.
    
    Reject offloading IP_CT_NEW connections for now by returning an error in
    relevant driver callbacks based on value of ctinfo. Support for offloading
    such connections will need to be added to the drivers afterwards.
    Signed-off-by: default avatarVlad Buslov <vladbu@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    29744a10
tc_ct.c 60.6 KB