Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1220/?format=api
https://patches.dpdk.org/api/patches/1220/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1415420776-4821-3-git-send-email-changchun.ouyang@intel.com/", "project": { "id": 1, "url": "https://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": "<1415420776-4821-3-git-send-email-changchun.ouyang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1415420776-4821-3-git-send-email-changchun.ouyang@intel.com", "date": "2014-11-08T04:26:13", "name": "[dpdk-dev,v4,2/5] igb: Config VM offload register", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "22f397410e27c30cfa692e8e4e5f9b85338ce284", "submitter": { "id": 31, "url": "https://patches.dpdk.org/api/people/31/?format=api", "name": "Ouyang Changchun", "email": "changchun.ouyang@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1415420776-4821-3-git-send-email-changchun.ouyang@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/1220/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/1220/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 9FDEA7F51;\n\tSat, 8 Nov 2014 05:16:58 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id A49A77F3D\n\tfor <dev@dpdk.org>; Sat, 8 Nov 2014 05:16:54 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP; 07 Nov 2014 20:24:43 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 07 Nov 2014 20:26:27 -0800", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id sA84QPtH020934;\n\tSat, 8 Nov 2014 12:26:25 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid sA84QNUm004868; Sat, 8 Nov 2014 12:26:25 +0800", "(from couyang@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id sA84QN4k004864; \n\tSat, 8 Nov 2014 12:26:23 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.07,336,1413270000\"; d=\"scan'208\";a=\"633676973\"", "From": "Ouyang Changchun <changchun.ouyang@intel.com>", "To": "dev@dpdk.org", "Date": "Sat, 8 Nov 2014 12:26:13 +0800", "Message-Id": "<1415420776-4821-3-git-send-email-changchun.ouyang@intel.com>", "X-Mailer": "git-send-email 1.7.12.2", "In-Reply-To": "<1415420776-4821-1-git-send-email-changchun.ouyang@intel.com>", "References": "<1414732757-7241-1-git-send-email-changchun.ouyang@intel.com>\n\t<1415420776-4821-1-git-send-email-changchun.ouyang@intel.com>", "Subject": "[dpdk-dev] [PATCH v4 2/5] igb: Config VM offload register", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://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": "<http://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": "Config VM offload register in igb PMD to enable it receive broadcast and multicast packets.\n\nSigned-off-by: Changchun Ouyang <changchun.ouyang@intel.com>\n---\n lib/librte_pmd_e1000/igb_rxtx.c | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)", "diff": "diff --git a/lib/librte_pmd_e1000/igb_rxtx.c b/lib/librte_pmd_e1000/igb_rxtx.c\nindex f09c525..0dca7b7 100644\n--- a/lib/librte_pmd_e1000/igb_rxtx.c\n+++ b/lib/librte_pmd_e1000/igb_rxtx.c\n@@ -1779,6 +1779,26 @@ igb_vmdq_rx_hw_configure(struct rte_eth_dev *dev)\n \tvt_ctl |= E1000_VT_CTL_IGNORE_MAC;\n \tE1000_WRITE_REG(hw, E1000_VT_CTL, vt_ctl);\n \n+\tfor (i = 0; i < E1000_VMOLR_SIZE; i++) {\n+\t\tvmolr = E1000_READ_REG(hw, E1000_VMOLR(i));\n+\t\tvmolr &= ~(E1000_VMOLR_AUPE | E1000_VMOLR_ROMPE |\n+\t\t\tE1000_VMOLR_ROPE | E1000_VMOLR_BAM |\n+\t\t\tE1000_VMOLR_MPME);\n+\n+\t\tif (cfg->rx_mode & ETH_VMDQ_ACCEPT_UNTAG)\n+\t\t\tvmolr |= E1000_VMOLR_AUPE;\n+\t\tif (cfg->rx_mode & ETH_VMDQ_ACCEPT_HASH_MC)\n+\t\t\tvmolr |= E1000_VMOLR_ROMPE;\n+\t\tif (cfg->rx_mode & ETH_VMDQ_ACCEPT_HASH_UC)\n+\t\t\tvmolr |= E1000_VMOLR_ROPE;\n+\t\tif (cfg->rx_mode & ETH_VMDQ_ACCEPT_BROADCAST)\n+\t\t\tvmolr |= E1000_VMOLR_BAM;\n+\t\tif (cfg->rx_mode & ETH_VMDQ_ACCEPT_MULTICAST)\n+\t\t\tvmolr |= E1000_VMOLR_MPME;\n+\n+\t\tE1000_WRITE_REG(hw, E1000_VMOLR(i), vmolr);\n+\t}\n+\n \t/*\n \t * VMOLR: set STRVLAN as 1 if IGMAC in VTCTL is set as 1\n \t * Both 82576 and 82580 support it\n", "prefixes": [ "dpdk-dev", "v4", "2/5" ] }{ "id": 1220, "url": "