X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fdatapath.h;h=9b4c4386bd5f262a058411e164e47e57b89a9255;hb=21a60ea97b492ae642d5b35430b24d137cd67f35;hp=1fe8facaf6c69919635df34c7ab1e9655c2b6b4c;hpb=6fa58f7a1533b96d8c958581ed18e0e5a245157b;p=openvswitch diff --git a/datapath/datapath.h b/datapath/datapath.h index 1fe8faca..9b4c4386 100644 --- a/datapath/datapath.h +++ b/datapath/datapath.h @@ -14,18 +14,19 @@ #include #include #include -#include #include #include #include +#include #include "flow.h" #include "dp_sysfs.h" /* Mask for the priority bits in a vlan header. If we ever merge upstream * then this should go into include/linux/if_vlan.h. */ #define VLAN_PCP_MASK 0xe000 +#define VLAN_PCP_SHIFT 13 -#define DP_MAX_PORTS 256 +#define DP_MAX_PORTS 1024 #define DP_MAX_GROUPS 16 #define DP_L2_BITS (PAGE_SHIFT - ilog2(sizeof(struct dp_bucket*))) @@ -167,4 +168,6 @@ static inline int skb_checksum_setup(struct sk_buff *skb) } #endif +int vswitch_skb_checksum_setup(struct sk_buff *skb); + #endif /* datapath.h */