Merge "[qca-ssdk] flow rfs api definiton fix"
diff --git a/include/fal/fal_rfs.h b/include/fal/fal_rfs.h
index 53012de..743882e 100755
--- a/include/fal/fal_rfs.h
+++ b/include/fal/fal_rfs.h
@@ -51,7 +51,7 @@
 
 int ssdk_rfs_ipct_rule_set(
 	__be32 ip_src, __be32 ip_dst,
-	__be32 sport, __be32 dport, uint8_t proto,
+	__be16 sport, __be16 dport, uint8_t proto,
 	u16 loadbalance, bool action);
 
 int ssdk_rfs_mac_rule_set(ssdk_fdb_rfs_t *rfs);
diff --git a/src/fal/fal_nat.c b/src/fal/fal_nat.c
index a98b185..8c85fb5 100755
--- a/src/fal/fal_nat.c
+++ b/src/fal/fal_nat.c
@@ -1306,7 +1306,7 @@
 
 int ssdk_rfs_ipct_rule_set(
 	__be32 ip_src, __be32 ip_dst,
-	__be32 sport, __be32 dport, uint8_t proto,
+	__be16 sport, __be16 dport, uint8_t proto,
 	u16 loadbalance, bool action)
 {
 	fal_flow_rfs_t rfs;
@@ -1317,8 +1317,8 @@
 	}
 	rfs.src_addr = ntohl(ip_src);
 	rfs.dst_addr = ntohl(ip_dst);
-	rfs.src_port = ntohl(sport);
-	rfs.dst_port = ntohl(dport);
+	rfs.src_port = ntohs(sport);
+	rfs.dst_port = ntohs(dport);
 	rfs.load_balance = loadbalance;
 	if(fal_flow_rfs_set(0, action, &rfs))
 		return -1;