cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

tc_csum.h (644B)


      1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
      2#ifndef __LINUX_TC_CSUM_H
      3#define __LINUX_TC_CSUM_H
      4
      5#include <linux/types.h>
      6#include <linux/pkt_cls.h>
      7
      8enum {
      9	TCA_CSUM_UNSPEC,
     10	TCA_CSUM_PARMS,
     11	TCA_CSUM_TM,
     12	TCA_CSUM_PAD,
     13	__TCA_CSUM_MAX
     14};
     15#define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1)
     16
     17enum {
     18	TCA_CSUM_UPDATE_FLAG_IPV4HDR = 1,
     19	TCA_CSUM_UPDATE_FLAG_ICMP    = 2,
     20	TCA_CSUM_UPDATE_FLAG_IGMP    = 4,
     21	TCA_CSUM_UPDATE_FLAG_TCP     = 8,
     22	TCA_CSUM_UPDATE_FLAG_UDP     = 16,
     23	TCA_CSUM_UPDATE_FLAG_UDPLITE = 32,
     24	TCA_CSUM_UPDATE_FLAG_SCTP    = 64,
     25};
     26
     27struct tc_csum {
     28	tc_gen;
     29
     30	__u32 update_flags;
     31};
     32
     33#endif /* __LINUX_TC_CSUM_H */