get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1197410/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1197410,
    "url": "http://patchwork.ozlabs.org/api/patches/1197410/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20191119114429.42117-1-sasha.neftin@intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20191119114429.42117-1-sasha.neftin@intel.com>",
    "list_archive_url": null,
    "date": "2019-11-19T11:44:29",
    "name": "[v1,07/15] igc: Remove no need declaration of the igc_set_rx_mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "360dbe3b6ca938d11ea9d0b41799a91bfefcbb4f",
    "submitter": {
        "id": 69860,
        "url": "http://patchwork.ozlabs.org/api/people/69860/?format=api",
        "name": "Sasha Neftin",
        "email": "sasha.neftin@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20191119114429.42117-1-sasha.neftin@intel.com/mbox/",
    "series": [
        {
            "id": 143759,
            "url": "http://patchwork.ozlabs.org/api/series/143759/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=143759",
            "date": "2019-11-19T11:43:32",
            "name": "[v1,01/15] igc: Remove no need declaration of the igc_clean_tx_ring",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/143759/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1197410/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1197410/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=osuosl.org (client-ip=140.211.166.137;\n\thelo=fraxinus.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 47HPBF1n0hz9sPj\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 19 Nov 2019 22:44:37 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id C45C286505;\n\tTue, 19 Nov 2019 11:44:35 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id PNiimumJWVzv; Tue, 19 Nov 2019 11:44:34 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 974438651D;\n\tTue, 19 Nov 2019 11:44:34 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 007711BF83B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 19 Nov 2019 11:44:33 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id ED83A8651D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 19 Nov 2019 11:44:33 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id B_pwcdcuKPh4 for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 19 Nov 2019 11:44:31 +0000 (UTC)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id A929586505\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 19 Nov 2019 11:44:31 +0000 (UTC)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t19 Nov 2019 03:44:31 -0800",
            "from ccdlinuxdev08.iil.intel.com ([143.185.161.150])\n\tby orsmga008.jf.intel.com with ESMTP; 19 Nov 2019 03:44:29 -0800"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.68,322,1569308400\"; d=\"scan'208\";a=\"200325779\"",
        "From": "Sasha Neftin <sasha.neftin@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Tue, 19 Nov 2019 13:44:29 +0200",
        "Message-Id": "<20191119114429.42117-1-sasha.neftin@intel.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "Subject": "[Intel-wired-lan] [PATCH v1 07/15] igc: Remove no need declaration\n\tof the igc_set_rx_mode",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "We want to avoid forward-declarations of function if possible.\nRearrange the igc_set_rx_mode function implementation.\n\nSigned-off-by: Sasha Neftin <sasha.neftin@intel.com>\n---\n drivers/net/ethernet/intel/igc/igc_main.c | 353 +++++++++++++++---------------\n 1 file changed, 176 insertions(+), 177 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c\nindex a1746be345b9..7118a5605229 100644\n--- a/drivers/net/ethernet/intel/igc/igc_main.c\n+++ b/drivers/net/ethernet/intel/igc/igc_main.c\n@@ -53,7 +53,6 @@ MODULE_DEVICE_TABLE(pci, igc_pci_tbl);\n \n /* forward declaration */\n static int igc_sw_init(struct igc_adapter *);\n-static void igc_set_rx_mode(struct net_device *netdev);\n static void igc_write_itr(struct igc_q_vector *q_vector);\n static void igc_assign_vector(struct igc_q_vector *q_vector, int msix_vector);\n static void igc_free_q_vector(struct igc_adapter *adapter, int v_idx);\n@@ -1992,6 +1991,182 @@ static void igc_nfc_filter_restore(struct igc_adapter *adapter)\n \tspin_unlock(&adapter->nfc_lock);\n }\n \n+/* If the filter to be added and an already existing filter express\n+ * the same address and address type, it should be possible to only\n+ * override the other configurations, for example the queue to steer\n+ * traffic.\n+ */\n+static bool igc_mac_entry_can_be_used(const struct igc_mac_addr *entry,\n+\t\t\t\t      const u8 *addr, const u8 flags)\n+{\n+\tif (!(entry->state & IGC_MAC_STATE_IN_USE))\n+\t\treturn true;\n+\n+\tif ((entry->state & IGC_MAC_STATE_SRC_ADDR) !=\n+\t    (flags & IGC_MAC_STATE_SRC_ADDR))\n+\t\treturn false;\n+\n+\tif (!ether_addr_equal(addr, entry->addr))\n+\t\treturn false;\n+\n+\treturn true;\n+}\n+\n+/* Add a MAC filter for 'addr' directing matching traffic to 'queue',\n+ * 'flags' is used to indicate what kind of match is made, match is by\n+ * default for the destination address, if matching by source address\n+ * is desired the flag IGC_MAC_STATE_SRC_ADDR can be used.\n+ */\n+static int igc_add_mac_filter(struct igc_adapter *adapter,\n+\t\t\t      const u8 *addr, const u8 queue)\n+{\n+\tstruct igc_hw *hw = &adapter->hw;\n+\tint rar_entries = hw->mac.rar_entry_count;\n+\tint i;\n+\n+\tif (is_zero_ether_addr(addr))\n+\t\treturn -EINVAL;\n+\n+\t/* Search for the first empty entry in the MAC table.\n+\t * Do not touch entries at the end of the table reserved for the VF MAC\n+\t * addresses.\n+\t */\n+\tfor (i = 0; i < rar_entries; i++) {\n+\t\tif (!igc_mac_entry_can_be_used(&adapter->mac_table[i],\n+\t\t\t\t\t       addr, 0))\n+\t\t\tcontinue;\n+\n+\t\tether_addr_copy(adapter->mac_table[i].addr, addr);\n+\t\tadapter->mac_table[i].queue = queue;\n+\t\tadapter->mac_table[i].state |= IGC_MAC_STATE_IN_USE;\n+\n+\t\tigc_rar_set_index(adapter, i);\n+\t\treturn i;\n+\t}\n+\n+\treturn -ENOSPC;\n+}\n+\n+/* Remove a MAC filter for 'addr' directing matching traffic to\n+ * 'queue', 'flags' is used to indicate what kind of match need to be\n+ * removed, match is by default for the destination address, if\n+ * matching by source address is to be removed the flag\n+ * IGC_MAC_STATE_SRC_ADDR can be used.\n+ */\n+static int igc_del_mac_filter(struct igc_adapter *adapter,\n+\t\t\t      const u8 *addr, const u8 queue)\n+{\n+\tstruct igc_hw *hw = &adapter->hw;\n+\tint rar_entries = hw->mac.rar_entry_count;\n+\tint i;\n+\n+\tif (is_zero_ether_addr(addr))\n+\t\treturn -EINVAL;\n+\n+\t/* Search for matching entry in the MAC table based on given address\n+\t * and queue. Do not touch entries at the end of the table reserved\n+\t * for the VF MAC addresses.\n+\t */\n+\tfor (i = 0; i < rar_entries; i++) {\n+\t\tif (!(adapter->mac_table[i].state & IGC_MAC_STATE_IN_USE))\n+\t\t\tcontinue;\n+\t\tif (adapter->mac_table[i].state != 0)\n+\t\t\tcontinue;\n+\t\tif (adapter->mac_table[i].queue != queue)\n+\t\t\tcontinue;\n+\t\tif (!ether_addr_equal(adapter->mac_table[i].addr, addr))\n+\t\t\tcontinue;\n+\n+\t\t/* When a filter for the default address is \"deleted\",\n+\t\t * we return it to its initial configuration\n+\t\t */\n+\t\tif (adapter->mac_table[i].state & IGC_MAC_STATE_DEFAULT) {\n+\t\t\tadapter->mac_table[i].state =\n+\t\t\t\tIGC_MAC_STATE_DEFAULT | IGC_MAC_STATE_IN_USE;\n+\t\t\tadapter->mac_table[i].queue = 0;\n+\t\t} else {\n+\t\t\tadapter->mac_table[i].state = 0;\n+\t\t\tadapter->mac_table[i].queue = 0;\n+\t\t\tmemset(adapter->mac_table[i].addr, 0, ETH_ALEN);\n+\t\t}\n+\n+\t\tigc_rar_set_index(adapter, i);\n+\t\treturn 0;\n+\t}\n+\n+\treturn -ENOENT;\n+}\n+\n+static int igc_uc_sync(struct net_device *netdev, const unsigned char *addr)\n+{\n+\tstruct igc_adapter *adapter = netdev_priv(netdev);\n+\tint ret;\n+\n+\tret = igc_add_mac_filter(adapter, addr, adapter->num_rx_queues);\n+\n+\treturn min_t(int, ret, 0);\n+}\n+\n+static int igc_uc_unsync(struct net_device *netdev, const unsigned char *addr)\n+{\n+\tstruct igc_adapter *adapter = netdev_priv(netdev);\n+\n+\tigc_del_mac_filter(adapter, addr, adapter->num_rx_queues);\n+\n+\treturn 0;\n+}\n+\n+/**\n+ * igc_set_rx_mode - Secondary Unicast, Multicast and Promiscuous mode set\n+ * @netdev: network interface device structure\n+ *\n+ * The set_rx_mode entry point is called whenever the unicast or multicast\n+ * address lists or the network interface flags are updated.  This routine is\n+ * responsible for configuring the hardware for proper unicast, multicast,\n+ * promiscuous mode, and all-multi behavior.\n+ */\n+static void igc_set_rx_mode(struct net_device *netdev)\n+{\n+\tstruct igc_adapter *adapter = netdev_priv(netdev);\n+\tstruct igc_hw *hw = &adapter->hw;\n+\tu32 rctl = 0, rlpml = MAX_JUMBO_FRAME_SIZE;\n+\tint count;\n+\n+\t/* Check for Promiscuous and All Multicast modes */\n+\tif (netdev->flags & IFF_PROMISC) {\n+\t\trctl |= IGC_RCTL_UPE | IGC_RCTL_MPE;\n+\t} else {\n+\t\tif (netdev->flags & IFF_ALLMULTI) {\n+\t\t\trctl |= IGC_RCTL_MPE;\n+\t\t} else {\n+\t\t\t/* Write addresses to the MTA, if the attempt fails\n+\t\t\t * then we should just turn on promiscuous mode so\n+\t\t\t * that we can at least receive multicast traffic\n+\t\t\t */\n+\t\t\tcount = igc_write_mc_addr_list(netdev);\n+\t\t\tif (count < 0)\n+\t\t\t\trctl |= IGC_RCTL_MPE;\n+\t\t}\n+\t}\n+\n+\t/* Write addresses to available RAR registers, if there is not\n+\t * sufficient space to store all the addresses then enable\n+\t * unicast promiscuous mode\n+\t */\n+\tif (__dev_uc_sync(netdev, igc_uc_sync, igc_uc_unsync))\n+\t\trctl |= IGC_RCTL_UPE;\n+\n+\t/* update state of unicast and multicast */\n+\trctl |= rd32(IGC_RCTL) & ~(IGC_RCTL_UPE | IGC_RCTL_MPE);\n+\twr32(IGC_RCTL, rctl);\n+\n+#if (PAGE_SIZE < 8192)\n+\tif (adapter->max_frame_size <= IGC_MAX_FRAME_BUILD_SKB)\n+\t\trlpml = IGC_MAX_FRAME_BUILD_SKB;\n+#endif\n+\twr32(IGC_RLPML, rlpml);\n+}\n+\n /**\n  * igc_configure - configure the hardware for RX and TX\n  * @adapter: private board structure\n@@ -2469,27 +2644,6 @@ igc_features_check(struct sk_buff *skb, struct net_device *dev,\n \treturn features;\n }\n \n-/* If the filter to be added and an already existing filter express\n- * the same address and address type, it should be possible to only\n- * override the other configurations, for example the queue to steer\n- * traffic.\n- */\n-static bool igc_mac_entry_can_be_used(const struct igc_mac_addr *entry,\n-\t\t\t\t      const u8 *addr, const u8 flags)\n-{\n-\tif (!(entry->state & IGC_MAC_STATE_IN_USE))\n-\t\treturn true;\n-\n-\tif ((entry->state & IGC_MAC_STATE_SRC_ADDR) !=\n-\t    (flags & IGC_MAC_STATE_SRC_ADDR))\n-\t\treturn false;\n-\n-\tif (!ether_addr_equal(addr, entry->addr))\n-\t\treturn false;\n-\n-\treturn true;\n-}\n-\n /* Add a MAC filter for 'addr' directing matching traffic to 'queue',\n  * 'flags' is used to indicate what kind of match is made, match is by\n  * default for the destination address, if matching by source address\n@@ -2590,161 +2744,6 @@ int igc_del_mac_steering_filter(struct igc_adapter *adapter,\n \t\t\t\t\tIGC_MAC_STATE_QUEUE_STEERING | flags);\n }\n \n-/* Add a MAC filter for 'addr' directing matching traffic to 'queue',\n- * 'flags' is used to indicate what kind of match is made, match is by\n- * default for the destination address, if matching by source address\n- * is desired the flag IGC_MAC_STATE_SRC_ADDR can be used.\n- */\n-static int igc_add_mac_filter(struct igc_adapter *adapter,\n-\t\t\t      const u8 *addr, const u8 queue)\n-{\n-\tstruct igc_hw *hw = &adapter->hw;\n-\tint rar_entries = hw->mac.rar_entry_count;\n-\tint i;\n-\n-\tif (is_zero_ether_addr(addr))\n-\t\treturn -EINVAL;\n-\n-\t/* Search for the first empty entry in the MAC table.\n-\t * Do not touch entries at the end of the table reserved for the VF MAC\n-\t * addresses.\n-\t */\n-\tfor (i = 0; i < rar_entries; i++) {\n-\t\tif (!igc_mac_entry_can_be_used(&adapter->mac_table[i],\n-\t\t\t\t\t       addr, 0))\n-\t\t\tcontinue;\n-\n-\t\tether_addr_copy(adapter->mac_table[i].addr, addr);\n-\t\tadapter->mac_table[i].queue = queue;\n-\t\tadapter->mac_table[i].state |= IGC_MAC_STATE_IN_USE;\n-\n-\t\tigc_rar_set_index(adapter, i);\n-\t\treturn i;\n-\t}\n-\n-\treturn -ENOSPC;\n-}\n-\n-/* Remove a MAC filter for 'addr' directing matching traffic to\n- * 'queue', 'flags' is used to indicate what kind of match need to be\n- * removed, match is by default for the destination address, if\n- * matching by source address is to be removed the flag\n- * IGC_MAC_STATE_SRC_ADDR can be used.\n- */\n-static int igc_del_mac_filter(struct igc_adapter *adapter,\n-\t\t\t      const u8 *addr, const u8 queue)\n-{\n-\tstruct igc_hw *hw = &adapter->hw;\n-\tint rar_entries = hw->mac.rar_entry_count;\n-\tint i;\n-\n-\tif (is_zero_ether_addr(addr))\n-\t\treturn -EINVAL;\n-\n-\t/* Search for matching entry in the MAC table based on given address\n-\t * and queue. Do not touch entries at the end of the table reserved\n-\t * for the VF MAC addresses.\n-\t */\n-\tfor (i = 0; i < rar_entries; i++) {\n-\t\tif (!(adapter->mac_table[i].state & IGC_MAC_STATE_IN_USE))\n-\t\t\tcontinue;\n-\t\tif (adapter->mac_table[i].state != 0)\n-\t\t\tcontinue;\n-\t\tif (adapter->mac_table[i].queue != queue)\n-\t\t\tcontinue;\n-\t\tif (!ether_addr_equal(adapter->mac_table[i].addr, addr))\n-\t\t\tcontinue;\n-\n-\t\t/* When a filter for the default address is \"deleted\",\n-\t\t * we return it to its initial configuration\n-\t\t */\n-\t\tif (adapter->mac_table[i].state & IGC_MAC_STATE_DEFAULT) {\n-\t\t\tadapter->mac_table[i].state =\n-\t\t\t\tIGC_MAC_STATE_DEFAULT | IGC_MAC_STATE_IN_USE;\n-\t\t\tadapter->mac_table[i].queue = 0;\n-\t\t} else {\n-\t\t\tadapter->mac_table[i].state = 0;\n-\t\t\tadapter->mac_table[i].queue = 0;\n-\t\t\tmemset(adapter->mac_table[i].addr, 0, ETH_ALEN);\n-\t\t}\n-\n-\t\tigc_rar_set_index(adapter, i);\n-\t\treturn 0;\n-\t}\n-\n-\treturn -ENOENT;\n-}\n-\n-static int igc_uc_sync(struct net_device *netdev, const unsigned char *addr)\n-{\n-\tstruct igc_adapter *adapter = netdev_priv(netdev);\n-\tint ret;\n-\n-\tret = igc_add_mac_filter(adapter, addr, adapter->num_rx_queues);\n-\n-\treturn min_t(int, ret, 0);\n-}\n-\n-static int igc_uc_unsync(struct net_device *netdev, const unsigned char *addr)\n-{\n-\tstruct igc_adapter *adapter = netdev_priv(netdev);\n-\n-\tigc_del_mac_filter(adapter, addr, adapter->num_rx_queues);\n-\n-\treturn 0;\n-}\n-\n-/**\n- * igc_set_rx_mode - Secondary Unicast, Multicast and Promiscuous mode set\n- * @netdev: network interface device structure\n- *\n- * The set_rx_mode entry point is called whenever the unicast or multicast\n- * address lists or the network interface flags are updated.  This routine is\n- * responsible for configuring the hardware for proper unicast, multicast,\n- * promiscuous mode, and all-multi behavior.\n- */\n-static void igc_set_rx_mode(struct net_device *netdev)\n-{\n-\tstruct igc_adapter *adapter = netdev_priv(netdev);\n-\tstruct igc_hw *hw = &adapter->hw;\n-\tu32 rctl = 0, rlpml = MAX_JUMBO_FRAME_SIZE;\n-\tint count;\n-\n-\t/* Check for Promiscuous and All Multicast modes */\n-\tif (netdev->flags & IFF_PROMISC) {\n-\t\trctl |= IGC_RCTL_UPE | IGC_RCTL_MPE;\n-\t} else {\n-\t\tif (netdev->flags & IFF_ALLMULTI) {\n-\t\t\trctl |= IGC_RCTL_MPE;\n-\t\t} else {\n-\t\t\t/* Write addresses to the MTA, if the attempt fails\n-\t\t\t * then we should just turn on promiscuous mode so\n-\t\t\t * that we can at least receive multicast traffic\n-\t\t\t */\n-\t\t\tcount = igc_write_mc_addr_list(netdev);\n-\t\t\tif (count < 0)\n-\t\t\t\trctl |= IGC_RCTL_MPE;\n-\t\t}\n-\t}\n-\n-\t/* Write addresses to available RAR registers, if there is not\n-\t * sufficient space to store all the addresses then enable\n-\t * unicast promiscuous mode\n-\t */\n-\tif (__dev_uc_sync(netdev, igc_uc_sync, igc_uc_unsync))\n-\t\trctl |= IGC_RCTL_UPE;\n-\n-\t/* update state of unicast and multicast */\n-\trctl |= rd32(IGC_RCTL) & ~(IGC_RCTL_UPE | IGC_RCTL_MPE);\n-\twr32(IGC_RCTL, rctl);\n-\n-#if (PAGE_SIZE < 8192)\n-\tif (adapter->max_frame_size <= IGC_MAX_FRAME_BUILD_SKB)\n-\t\trlpml = IGC_MAX_FRAME_BUILD_SKB;\n-#endif\n-\twr32(IGC_RLPML, rlpml);\n-}\n-\n /**\n  * igc_msix_other - msix other interrupt handler\n  * @irq: interrupt number\n",
    "prefixes": [
        "v1",
        "07/15"
    ]
}