<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ethernet/intel/igc, branch linux-5.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-11-21T18:55:06Z</updated>
<entry>
<title>igc: Remove obsolete IGC_ERR define</title>
<updated>2018-11-21T18:55:06Z</updated>
<author>
<name>Sasha Neftin</name>
</author>
<published>2018-11-12T09:05:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ed4babed9cc7eaa71522b5c10265ef3a4a06297'/>
<id>urn:sha1:6ed4babed9cc7eaa71522b5c10265ef3a4a06297</id>
<content type='text'>
Address community comment.
Remove obsolete IGC_ERR define and use dev_err method.
Suggested by Joe Perches.

Signed-off-by: Sasha Neftin &lt;sasha.neftin@intel.com&gt;
Tested-by: Aaron Brown &lt;aaron.f.brown@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
</content>
</entry>
<entry>
<title>ethernet/intel: consolidate NAPI and NAPI exit</title>
<updated>2018-11-21T18:35:23Z</updated>
<author>
<name>Jesse Brandeburg</name>
</author>
<published>2018-11-08T22:55:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0bcd952feec7042d9a5383b639c8edc943402add'/>
<id>urn:sha1:0bcd952feec7042d9a5383b639c8edc943402add</id>
<content type='text'>
While reviewing code, I noticed that Eric Dumazet recommends that
drivers check the return code of napi_complete_done, and use that
to decide to enable interrupts or not when exiting poll.  One of
the Intel drivers was already fixed (ixgbe).

Upon looking at the Intel drivers as a whole, we are handling our
polling and NAPI exit in a few different ways based on whether we
have multiqueue and whether we have Tx cleanup included. Several
drivers had the bug of exiting NAPI with return 0, which appears
to mess up the accounting in the stack.

Consolidate all the NAPI routines to do best known way of exiting
and to just mostly look like each other.
1) check return code of napi_complete_done to control interrupt enable
2) return the actual amount of work done.
3) return budget immediately if need NAPI poll again

Tested the changes on e1000e with a high interrupt rate set, and
it shows about an 8% reduction in the CPU utilization when busy
polling because we aren't re-enabling interrupts when we're about
to be polled.

Signed-off-by: Jesse Brandeburg &lt;jesse.brandeburg@intel.com&gt;
Tested-by: Andrew Bowers &lt;andrewx.bowers@intel.com&gt;
Reviewed-by: Jacob Keller &lt;jacob.e.keller@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
</content>
</entry>
<entry>
<title>igc: Clean up code</title>
<updated>2018-11-07T17:47:01Z</updated>
<author>
<name>Sasha Neftin</name>
</author>
<published>2018-10-25T07:06:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=920664a8f79084df50033f0ff26238d7d32dcede'/>
<id>urn:sha1:920664a8f79084df50033f0ff26238d7d32dcede</id>
<content type='text'>
Address few community comments.
Remove unused code, will be added per demand.
Remove blank lines and unneeded includes.

Signed-off-by: Sasha Neftin &lt;sasha.neftin@intel.com&gt;
Tested-by: Aaron Brown &lt;aaron.f.brown@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
</content>
</entry>
<entry>
<title>igc: Tidy up some white space</title>
<updated>2018-11-07T17:47:01Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2018-10-19T19:57:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bb9089b668d65ac94f771e5ef6b2431c70697830'/>
<id>urn:sha1:bb9089b668d65ac94f771e5ef6b2431c70697830</id>
<content type='text'>
I just cleaned up a couple small white space issues.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Sasha Neftin &lt;sasha.neftin@intel.com&gt;
Tested-by: Aaron Brown &lt;aaron.f.brown@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
</content>
</entry>
<entry>
<title>igc: fix error return handling from call to netif_set_real_num_tx_queues</title>
<updated>2018-11-07T17:47:01Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2018-10-19T18:16:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14b21cec85858001b2134c0ac251fb8673d7ad67'/>
<id>urn:sha1:14b21cec85858001b2134c0ac251fb8673d7ad67</id>
<content type='text'>
The call to netif_set_real_num_tx_queues is not assigning the error
return to variable err even though the next line checks err for an
error.  Fix this by adding the missing err assignment.

Detected by CoverityScan, CID#1474551 ("Logically dead code")

Fixes: 3df25e4c1e66 ("igc: Add interrupt support")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Acked-by: Sasha Neftin &lt;sasha.neftin@intel.com&gt;
Tested-by: Aaron Brown &lt;aaron.f.brown@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
</content>
</entry>
<entry>
<title>igc: Remove set but not used variable 'pci_using_dac'</title>
<updated>2018-11-07T17:47:01Z</updated>
<author>
<name>YueHaibing</name>
</author>
<published>2018-10-19T12:48:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=84cfa53740e137a7ead9aab26e1ad0704fe21caa'/>
<id>urn:sha1:84cfa53740e137a7ead9aab26e1ad0704fe21caa</id>
<content type='text'>
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/intel/igc/igc_main.c: In function 'igc_probe':
drivers/net/ethernet/intel/igc/igc_main.c:3535:11: warning:
 variable 'pci_using_dac' set but not used [-Wunused-but-set-variable]

It never used since introduction in commit
d89f88419f99 ("igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support")

Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Acked-by: Sasha Neftin &lt;sasha.neftin@intel.com&gt;
Tested-by: Aaron Brown &lt;aaron.f.brown@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
</content>
</entry>
<entry>
<title>igc: Remove set but not used variables 'ctrl_ext, link_mode'</title>
<updated>2018-11-07T17:47:01Z</updated>
<author>
<name>YueHaibing</name>
</author>
<published>2018-10-19T12:40:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dda458d28567d0bb99ad67180a72aaff2e0adc3b'/>
<id>urn:sha1:dda458d28567d0bb99ad67180a72aaff2e0adc3b</id>
<content type='text'>
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/intel/igc/igc_base.c: In function 'igc_init_phy_params_base':
drivers/net/ethernet/intel/igc/igc_base.c:240:6: warning:
 variable 'ctrl_ext' set but not used [-Wunused-but-set-variable]
  u32 ctrl_ext;

drivers/net/ethernet/intel/igc/igc_base.c: In function 'igc_get_invariants_base':
drivers/net/ethernet/intel/igc/igc_base.c:290:6: warning:
 variable 'link_mode' set but not used [-Wunused-but-set-variable]
  u32 link_mode = 0;

It never used since introduction in
commit c0071c7aa5fe ("igc: Add HW initialization code")

Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Acked-by: Sasha Neftin &lt;sasha.neftin@intel.com&gt;
Tested-by: Aaron Brown &lt;aaron.f.brown@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
</content>
</entry>
<entry>
<title>intel-ethernet: software timestamp skbs as late as possible</title>
<updated>2018-11-07T17:47:01Z</updated>
<author>
<name>Jacob Keller</name>
</author>
<published>2018-10-05T16:33:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a9e510589d7017ee4e82800d0a1d78a694772787'/>
<id>urn:sha1:a9e510589d7017ee4e82800d0a1d78a694772787</id>
<content type='text'>
Many of the Intel Ethernet drivers call skb_tx_timestamp() earlier than
necessary. Move the calls to this function to the latest point possible,
just prior to notifying hardware of the new Tx packet when we bump the
tail register.

This affects i40e, iavf, igb, igc, and ixgbe.

The e100, e1000, e1000e, fm10k, and ice drivers already call the
skb_tx_timestamp() function just prior to indicating the Tx packet to
hardware, so they do not need to be changed.

Signed-off-by: Jacob Keller &lt;jacob.e.keller@intel.com&gt;
Tested-by: Andrew Bowers &lt;andrewx.bowers@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
</content>
</entry>
<entry>
<title>igc: Add watchdog</title>
<updated>2018-10-17T20:58:47Z</updated>
<author>
<name>Sasha Neftin</name>
</author>
<published>2018-10-11T07:17:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=208983f099d975b5da27907245b4c4ea5146210e'/>
<id>urn:sha1:208983f099d975b5da27907245b4c4ea5146210e</id>
<content type='text'>
Code completion, remove obsolete code
Add watchdog methods

Signed-off-by: Sasha Neftin &lt;sasha.neftin@intel.com&gt;
Tested-by: Aaron Brown &lt;aaron.f.brown@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
</content>
</entry>
<entry>
<title>igc: Add setup link functionality</title>
<updated>2018-10-17T20:56:55Z</updated>
<author>
<name>Sasha Neftin</name>
</author>
<published>2018-10-11T07:17:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4eb8080143a9d9fd513bacc65b2466c57983aaae'/>
<id>urn:sha1:4eb8080143a9d9fd513bacc65b2466c57983aaae</id>
<content type='text'>
Add link establishment methods
Add auto negotiation methods
Add read MAC address method

Signed-off-by: Sasha Neftin &lt;sasha.neftin@intel.com&gt;
Tested-by: Aaron Brown &lt;aaron.f.brown@intel.com&gt;
Signed-off-by: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
</content>
</entry>
</feed>
