Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/35218/?format=api
http://patches.dpdk.org/api/patches/35218/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180219124227.19859-1-david.marchand@6wind.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20180219124227.19859-1-david.marchand@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180219124227.19859-1-david.marchand@6wind.com", "date": "2018-02-19T12:42:27", "name": "[dpdk-dev] net/enic: add primary mac address handler", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "2058a31ede4753b44e2683e63c4dc82b44f1bb4f", "submitter": { "id": 3, "url": "http://patches.dpdk.org/api/people/3/?format=api", "name": "David Marchand", "email": "david.marchand@6wind.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180219124227.19859-1-david.marchand@6wind.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/35218/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/35218/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4D02F7CBA;\n\tMon, 19 Feb 2018 13:42:40 +0100 (CET)", "from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com\n\t[62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 47B632C66\n\tfor <dev@dpdk.org>; Mon, 19 Feb 2018 13:42:39 +0100 (CET)", "from alcyon.dev.6wind.com. (unknown [10.16.0.235])\n\tby proxy.6wind.com (Postfix) with ESMTP id C5535134CED;\n\tMon, 19 Feb 2018 13:39:33 +0100 (CET)" ], "From": "David Marchand <david.marchand@6wind.com>", "To": "dev@dpdk.org", "Cc": "johndale@cisco.com,\n\tneescoba@cisco.com", "Date": "Mon, 19 Feb 2018 13:42:27 +0100", "Message-Id": "<20180219124227.19859-1-david.marchand@6wind.com>", "X-Mailer": "git-send-email 2.11.0", "Subject": "[dpdk-dev] [PATCH] net/enic: add primary mac address handler", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Reused the .mac_addr_add and .mac_addr_del callbacks code to implement\nprimary mac address handler.\n\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n drivers/net/enic/enic_ethdev.c | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c\nindex 669dbf336..802fd3623 100644\n--- a/drivers/net/enic/enic_ethdev.c\n+++ b/drivers/net/enic/enic_ethdev.c\n@@ -610,6 +610,13 @@ static void enicpmd_remove_mac_addr(struct rte_eth_dev *eth_dev, uint32_t index)\n \tenic_del_mac_address(enic, index);\n }\n \n+static void enicpmd_set_mac_addr(struct rte_eth_dev *eth_dev,\n+\tstruct ether_addr *addr)\n+{\n+\tenicpmd_remove_mac_addr(eth_dev, 0);\n+\tenicpmd_add_mac_addr(eth_dev, addr, 0, 0);\n+}\n+\n static int enicpmd_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)\n {\n \tstruct enic *enic = pmd_priv(eth_dev);\n@@ -657,6 +664,7 @@ static const struct eth_dev_ops enicpmd_eth_dev_ops = {\n \t.priority_flow_ctrl_set = NULL,\n \t.mac_addr_add = enicpmd_add_mac_addr,\n \t.mac_addr_remove = enicpmd_remove_mac_addr,\n+\t.mac_addr_set = enicpmd_set_mac_addr,\n \t.filter_ctrl = enicpmd_dev_filter_ctrl,\n };\n \n", "prefixes": [ "dpdk-dev" ] }{ "id": 35218, "url": "