From 2b59f288c324c2ed132604bb5e21ad0afe45b4d3 Mon Sep 17 00:00:00 2001 From: "Anand H. Krishnan" Date: Tue, 1 Dec 2015 16:40:10 +0530 Subject: [PATCH] FatFlow: wrong port calculation The macro to extract port from proto_port combination uses logical and instead of binary and, resulting in wrong port calulcation. Change-Id: Icc4c7e6038a6e15ad21f17fa03bb377b724372ac Partial-BUG: 1518234 --- include/vr_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vr_interface.h b/include/vr_interface.h index dd7c95868..aaf477b68 100644 --- a/include/vr_interface.h +++ b/include/vr_interface.h @@ -175,7 +175,7 @@ struct vr_vrf_assign { #define VIF_FAT_FLOW_SCTP_INDEX 3 #define VIF_FAT_FLOW_MAXPROTO_INDEX 4 -#define VIF_FAT_FLOW_PORT(p_p) ((p_p) && 0xFFFF) +#define VIF_FAT_FLOW_PORT(p_p) ((p_p) & 0xFFFF) #define VIF_FAT_FLOW_PROTOCOL(p_p) (((p_p) >> 16) & 0xFF) struct vr_interface {