X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fdatapath.h;h=d9fe4b2fb5d2b8951a852b4257be925e2b63e51a;hb=3b12addabb60c1eae0f58942281a388a6bc5d45b;hp=6732b59ea172bffaa4d2123d9fe6659a842bd433;hpb=c69ee87c10818267f991236201150b1fa51ae519;p=openvswitch diff --git a/datapath/datapath.h b/datapath/datapath.h index 6732b59e..d9fe4b2f 100644 --- a/datapath/datapath.h +++ b/datapath/datapath.h @@ -182,6 +182,23 @@ struct net_bridge_port { atomic_t sflow_pool; }; +enum csum_type { + CSUM_NONE = 0, + CSUM_UNNECESSARY = 1, + CSUM_COMPLETE = 2, + CSUM_PARTIAL = 3, +}; + +/** + * struct ovs_skb_cb - OVS data in skb CB + * @ip_summed: Consistently stores L4 checksumming status across different + * kernel versions. + */ +struct ovs_skb_cb { + enum csum_type ip_summed; +}; +#define OVS_CB(skb) ((struct ovs_skb_cb *)(skb)->cb) + extern struct notifier_block dp_device_notifier; extern int (*dp_ioctl_hook)(struct net_device *dev, struct ifreq *rq, int cmd);