From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Subject: [PATCH iproute2 net-next 3/4] tc: flower: correct name of ip_proto parameter to flower_parse_port() Date: Tue, 29 Nov 2016 16:51:32 +0100 Message-ID: <1480434693-29397-4-git-send-email-simon.horman@netronome.com> References: <1480434693-29397-1-git-send-email-simon.horman@netronome.com> Cc: netdev@vger.kernel.org, Simon Horman To: Stephen Hemminger Return-path: Received: from mail-wj0-f172.google.com ([209.85.210.172]:36850 "EHLO mail-wj0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934050AbcK2PwR (ORCPT ); Tue, 29 Nov 2016 10:52:17 -0500 Received: by mail-wj0-f172.google.com with SMTP id qp4so149071798wjc.3 for ; Tue, 29 Nov 2016 07:52:16 -0800 (PST) In-Reply-To: <1480434693-29397-1-git-send-email-simon.horman@netronome.com> Sender: netdev-owner@vger.kernel.org List-ID: This corrects a typo. Signed-off-by: Simon Horman --- This a follow-up to ("tc: flower: Support matching on SCTP ports") --- tc/f_flower.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tc/f_flower.c b/tc/f_flower.c index c74a0244e244..bca910d95729 100644 --- a/tc/f_flower.c +++ b/tc/f_flower.c @@ -157,15 +157,15 @@ static int flower_parse_ip_addr(char *str, __be16 eth_type, return 0; } -static int flower_port_attr_type(__u8 ip_port, bool is_src) +static int flower_port_attr_type(__u8 ip_proto, bool is_src) { - if (ip_port == IPPROTO_TCP) { + if (ip_proto == IPPROTO_TCP) { return is_src ? TCA_FLOWER_KEY_TCP_SRC : TCA_FLOWER_KEY_TCP_DST; - } else if (ip_port == IPPROTO_UDP) { + } else if (ip_proto == IPPROTO_UDP) { return is_src ? TCA_FLOWER_KEY_UDP_SRC : TCA_FLOWER_KEY_UDP_DST; - } else if (ip_port == IPPROTO_SCTP) { + } else if (ip_proto == IPPROTO_SCTP) { return is_src ? TCA_FLOWER_KEY_SCTP_SRC : TCA_FLOWER_KEY_SCTP_DST; } else { @@ -174,14 +174,14 @@ static int flower_port_attr_type(__u8 ip_port, bool is_src) } } -static int flower_parse_port(char *str, __u8 ip_port, bool is_src, +static int flower_parse_port(char *str, __u8 ip_proto, bool is_src, struct nlmsghdr *n) { int ret; int type; __be16 port; - type = flower_port_attr_type(ip_port, is_src); + type = flower_port_attr_type(ip_proto, is_src); if (type < 0) return -1; -- 2.7.0.rc3.207.g0ac5344