X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fdatapath.h;h=7548ba26521e49b9bd63287e456c14b381a24da0;hb=9e336f491038f440dc846c172daeea0d0a77b20c;hp=ab9359ef5ab1e5c382d91fdeeb6c86a82743b946;hpb=0d3b8a34d6eabf049ae7e2d5689a0e687495100d;p=openvswitch diff --git a/datapath/datapath.h b/datapath/datapath.h index ab9359ef..7548ba26 100644 --- a/datapath/datapath.h +++ b/datapath/datapath.h @@ -24,8 +24,9 @@ /* 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*))) @@ -168,5 +169,6 @@ static inline int skb_checksum_setup(struct sk_buff *skb) #endif int vswitch_skb_checksum_setup(struct sk_buff *skb); +void forward_ip_summed(struct sk_buff *skb); #endif /* datapath.h */