lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEP_g=9wNpx4P1anDo1v0996z1=VqJrMkNQsb87CGfHfNxb9FA@mail.gmail.com>
Date:	Wed, 12 Jun 2013 19:52:03 -0700
From:	Jesse Gross <jesse@...ira.com>
To:	Pravin B Shelar <pshelar@...ira.com>
Cc:	netdev <netdev@...r.kernel.org>,
	"dev@...nvswitch.org" <dev@...nvswitch.org>
Subject: Re: [PATCH net-next 2/4] openvswitch: Simplify interface ovs_flow_metadata_from_nlattrs()

On Wed, Jun 12, 2013 at 3:57 PM, Pravin B Shelar <pshelar@...ira.com> wrote:
> diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c
> index b15321a..150f181 100644
> --- a/net/openvswitch/flow.c
> +++ b/net/openvswitch/flow.c
> @@ -1122,10 +1122,9 @@ int ovs_flow_from_nlattrs(struct sw_flow_key *swkey, int *key_lenp,
>
>  /**
>   * ovs_flow_metadata_from_nlattrs - parses Netlink attributes into a flow key.
> - * @priority: receives the skb priority
> - * @mark: receives the skb mark
> - * @in_port: receives the extracted input port.
> - * @key: Netlink attribute holding nested %OVS_KEY_ATTR_* Netlink attribute
> + * @flow: Receives extracted in_port, priority, tun_key and skb_mark.
> + * @key_len: Length of key in @flow.  Used for calculating flow hash.
> + * @attr: Netlink attribute holding nested %OVS_KEY_ATTR_* Netlink attribute
>   * sequence.
>   *
>   * This parses a series of Netlink attributes that form a flow key, which must
> @@ -1133,15 +1132,15 @@ int ovs_flow_from_nlattrs(struct sw_flow_key *swkey, int *key_lenp,
>   * get the metadata, that is, the parts of the flow key that cannot be
>   * extracted from the packet itself.
>   */
> -int ovs_flow_metadata_from_nlattrs(u32 *priority, u32 *mark, u16 *in_port,
> -                              const struct nlattr *attr)
> +int ovs_flow_metadata_from_nlattrs(struct sw_flow *flow, int key_len,
> +                                  const struct nlattr *attr)

It looks like key_len isn't actually used in this function. Is there
another piece that you meant to include?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ