From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 8D3171B1B6 for ; Wed, 24 Jan 2018 16:37:39 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 35DD322276; Wed, 24 Jan 2018 10:37:39 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:37:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Hge6olkwzb5SDj4J0 9jB7wR94f8jgdom1KeloOrda74=; b=HvIsP8Q68sK76HmW0iKd+9y70YnYi1Ife y9iXpo0inb7bQiYb3iulW2Xd4nOlcYBt5RVKkJ7ebgR+dV3kZo9ykvkvoltpdF9Y Rf/rIBQDrIfKOFSd6e3d9Jeq900MI49Po+76450xEOgJEWyqAdi9BvFETqRJmUHh CLdMzic5caRUMdstuCXBp2pSfvMhfc5ygeaoOcxnRSj/x72U5JQy0szwD/wJRYrj nRLu/vrvXEnw26lGBxjkaPtv5ANhTyQPVjr8eTannHkd6blIll5DLs2Nj5AxKc2s lzxaNtWvP42vsPfAHgj1Eiu03dERCvWum+VfwpKNafu61d+d9un2Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=Hge6olkwzb5SDj4J09jB7wR94f8jgdom1KeloOrda74=; b=NEuq82FG EVF8fCaaF0rO5Q45PFqW1FCkTCRDxc7FrBd3MbpkBxN6JWVcW3VMy+vjVCa49vOX NW8ZOiLITTt+22TE8Ffz7gP+1bD4KvPbQCyUB6Kh2z9+62Dtta2mgR3vsWq7Lorl ZVx7EcYO8PHPFxd7O1xqRBHXeO5TwUizrGNTFLvUdEpOTrSOxnd/DSAE1ORSLG0t APwKDIqs3PskjilE1pI5tX6J+hzS+8eZbnM5XbYxXmv3s8hbA+QFM97zkCs/z1QS ynDe/L4lJccfKj92x+OZ101NVPH8B43HuWTQrifYxaoYDVleSV0CYQebNGsaCRvk QBYPp80SVbwUjQ== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 303137E3D4; Wed, 24 Jan 2018 10:37:36 -0500 (EST) From: Yuanhan Liu To: Raslan Darawsheh Cc: Nelio Laranjeiro , dpdk stable Date: Wed, 24 Jan 2018 23:31:49 +0800 Message-Id: <1516808026-25523-41-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/mlx5: fix flow type for allmulti rules' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:37:39 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From b187189e1371cba301f85e1f11c3c7d0211e4a0a Mon Sep 17 00:00:00 2001 From: Raslan Darawsheh Date: Tue, 5 Dec 2017 11:37:50 +0200 Subject: [PATCH] net/mlx5: fix flow type for allmulti rules [ upstream commit 0a40a1363a4df8043f9a7e93289eda2ea52815a7 ] Chnaged ibv_flow_attr type for allmulti rule to IBV_FLOW_ATTR_MC_DEFAULT instead of IBV_FLOW_ATTR_NORMAL, in case allmulti was enabled. Fixes: 272733b5 ("net/mlx5: use flow to enable unicast traffic") Signed-off-by: Raslan Darawsheh Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index f32dfdd..75ea299 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -432,6 +432,7 @@ static const struct mlx5_flow_items mlx5_flow_items[] = { /** Structure to pass to the conversion function. */ struct mlx5_flow_parse { uint32_t inner; /**< Set once VXLAN is encountered. */ + uint32_t allmulti:1; /**< Set once allmulti dst MAC is encountered. */ uint32_t create:1; /**< Whether resources should remain after a validate. */ uint32_t drop:1; /**< Target is a drop queue. */ @@ -1206,6 +1207,17 @@ exit_free: } } } + if (parser->allmulti && + parser->layer == HASH_RXQ_ETH) { + for (i = 0; i != hash_rxq_init_n; ++i) { + if (!parser->queue[i].ibv_attr) + continue; + if (parser->queue[i].ibv_attr->num_of_specs != 1) + break; + parser->queue[i].ibv_attr->type = + IBV_FLOW_ATTR_MC_DEFAULT; + } + } return ret; exit_enomem: for (i = 0; i != hash_rxq_init_n; ++i) { @@ -1311,6 +1323,7 @@ mlx5_flow_create_eth(const struct rte_flow_item *item, eth.val.ether_type &= eth.mask.ether_type; } mlx5_flow_create_copy(parser, ð, eth_size); + parser->allmulti = eth.val.dst_mac[0] & 1; return 0; } -- 2.7.4