<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/net/benet/be_main.c, branch v3.0.95</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v3.0.95</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v3.0.95'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2012-07-16T15:47:37+00:00</updated>
<entry>
<title>be2net: fix a race in be_xmit()</title>
<updated>2012-07-16T15:47:37+00:00</updated>
<author>
<name>Eric Dumazet</name>
<email>edumazet@google.com</email>
</author>
<published>2012-06-07T22:59:59+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=9e7d7c544c8a3ec827f72d9af9c2c3efa45e5325'/>
<id>urn:sha1:9e7d7c544c8a3ec827f72d9af9c2c3efa45e5325</id>
<content type='text'>
[ Upstream commit cd8f76c0a0c6fce0b2cf23c9bd0123f91453f46d ]

As soon as hardware is notified of a transmit, we no longer can assume
skb can be dereferenced, as TX completion might have freed the packet.

Signed-off-by: Eric Dumazet &lt;edumazet@google.com&gt;
Cc: Sathya Perla &lt;sathya.perla@emulex.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Add appropriate &lt;linux/prefetch.h&gt; include for prefetch users</title>
<updated>2011-05-23T04:41:57+00:00</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2011-05-22T20:47:17+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=70c71606190e9115e5f8363bfcd164c582eb314a'/>
<id>urn:sha1:70c71606190e9115e5f8363bfcd164c582eb314a</id>
<content type='text'>
After discovering that wide use of prefetch on modern CPUs
could be a net loss instead of a win, net drivers which were
relying on the implicit inclusion of prefetch.h via the list
headers showed up in the resulting cleanup fallout.  Give
them an explicit include via the following $0.02 script.

 =========================================
 #!/bin/bash
 MANUAL=""
 for i in `git grep -l 'prefetch(.*)' .` ; do
 	grep -q '&lt;linux/prefetch.h&gt;' $i
 	if [ $? = 0 ] ; then
 		continue
 	fi

 	(	echo '?^#include &lt;linux/?a'
 		echo '#include &lt;linux/prefetch.h&gt;'
 		echo .
 		echo w
 		echo q
 	) | ed -s $i &gt; /dev/null 2&gt;&amp;1
 	if [ $? != 0 ]; then
 		echo $i needs manual fixup
 		MANUAL="$i $MANUAL"
 	fi
 done
 echo ------------------- 8\&lt;----------------------
 echo vi $MANUAL
 =========================================

Signed-off-by: Paul &lt;paul.gortmaker@windriver.com&gt;
[ Fixed up some incorrect #include placements, and added some
  non-network drivers and the fib_trie.c case    - Linus ]
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>be2net: Kill set but unused variable 'req' in lancer_fw_download()</title>
<updated>2011-05-19T22:49:54+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2011-05-19T22:49:54+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=63722966d703aeb8071d52172de87e377006cd28'/>
<id>urn:sha1:63722966d703aeb8071d52172de87e377006cd28</id>
<content type='text'>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: Enable SR-IOV for Lancer</title>
<updated>2011-05-18T21:30:56+00:00</updated>
<author>
<name>Mammatha Edhala</name>
<email>mammatha.edhala@emulex.com</email>
</author>
<published>2011-05-18T03:26:22+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=12f4d0a8770ab26639091d0b2509b19681daad69'/>
<id>urn:sha1:12f4d0a8770ab26639091d0b2509b19681daad69</id>
<content type='text'>
Enable SR-IOV for Lancer

Signed-off-by: Mammatha Edhala &lt;mammatha.edhala@emulex.com&gt;
Signed-off-by: Padmanabh Ratnakar &lt;padmanabh.ratnakar@emulex.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: FW download for Lancer</title>
<updated>2011-05-16T18:13:53+00:00</updated>
<author>
<name>Shripad Nunjundarao</name>
<email>shripad.nunjundarao@emulex.com</email>
</author>
<published>2011-05-16T07:36:59+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=485bf569ba798b4702bc2efbfd3a355fe2c8db04'/>
<id>urn:sha1:485bf569ba798b4702bc2efbfd3a355fe2c8db04</id>
<content type='text'>
Added implementation of FW download feature for Lancer.

Signed-off-by: Shripad Nunjundarao &lt;shripad.nunjundarao@emulex.com&gt;
Signed-off-by: Sevin Xavier &lt;selvin.xavier@emulex.com&gt;
Signed-off-by: Padmanabh Ratnakar &lt;padmanabh.ratnakar@emulex.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: Stats for Lancer</title>
<updated>2011-05-16T18:13:53+00:00</updated>
<author>
<name>Selvin Xavier</name>
<email>selvin.xavier@emulex.com</email>
</author>
<published>2011-05-16T07:36:35+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=005d569600b404cae0b356e3c4085290ecc17775'/>
<id>urn:sha1:005d569600b404cae0b356e3c4085290ecc17775</id>
<content type='text'>
Added Lancer stats implementation.

Signed-off-by: Selvin Xavier &lt;selvin.xavier@emulex.com&gt;
Signed-off-by: Padmanabh Ratnakar &lt;padmanabh.ratnakar@emulex.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: Support for version 1 of stats for BE3</title>
<updated>2011-05-16T18:13:52+00:00</updated>
<author>
<name>Ajit Khaparde</name>
<email>ajit.khaparde@emulex.com</email>
</author>
<published>2011-05-16T07:36:18+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=89a88ab84b946a90839fb66ca3583a2504c11292'/>
<id>urn:sha1:89a88ab84b946a90839fb66ca3583a2504c11292</id>
<content type='text'>
Added support to get version 1 of the stats for BE3.
Use old stats command for BE2.

Signed-off-by: Ajit Khaparde &lt;ajit.khaparde@emulex.com&gt;
Signed-off-by: Selvin Xavier &lt;selvin.xavier@emulex.com&gt;
Signed-off-by: Padmanabh Ratnakar &lt;padmanabh.ratnakar@emulex.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: Fix to prevent flooding of TX queue</title>
<updated>2011-05-11T23:10:03+00:00</updated>
<author>
<name>Padmanabh Ratnakar</name>
<email>padmanabh.ratnakar@emulex.com</email>
</author>
<published>2011-05-10T05:13:57+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=4d586b823acc46c55c889ae1798de236c9d403da'/>
<id>urn:sha1:4d586b823acc46c55c889ae1798de236c9d403da</id>
<content type='text'>
Start/stop TX queue is controlled by TX queue "used" counter.
It is incremented while WRBs are posted to TX queue and
decremented when TX completions are received. This counter was
getting decremented before HW is informed about processing of TX
completions. As used counter is decremented, transmit function
posts new WRBs and creates completion queue full scenario in HW.

Signed-off-by: Padmanabh Ratnakar &lt;padmanabh.ratnakar@emulex.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: Use NTWK_RX_FILTER command for promiscous mode</title>
<updated>2011-05-11T23:10:03+00:00</updated>
<author>
<name>Padmanabh Ratnakar</name>
<email>padmanabh.ratnakar@emulex.com</email>
</author>
<published>2011-05-10T05:13:26+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ecd0bf0f7b280bac3ac7419ed3aac84cd92878e9'/>
<id>urn:sha1:ecd0bf0f7b280bac3ac7419ed3aac84cd92878e9</id>
<content type='text'>
Use OPCODE_COMMON_NTWK_RX_FILTER command for promiscous mode as
OPCODE_ETH_PROMISCUOUS command is getting deprecated.

Signed-off-by: Padmanabh Ratnakar &lt;padmanabh.ratnakar@emulex.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: Handle error completion in Lancer</title>
<updated>2011-05-11T23:10:02+00:00</updated>
<author>
<name>Padmanabh Ratnakar</name>
<email>padmanabh.ratnakar@emulex.com</email>
</author>
<published>2011-05-10T05:12:17+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=009dd872d753f854cf13c8334e0055092f539b38'/>
<id>urn:sha1:009dd872d753f854cf13c8334e0055092f539b38</id>
<content type='text'>
In Lancer if a frame is DMAed partially due to lack of RX buffers,
an error completion is sent with packet size as zero and num_recvd
indicating number of used buffers. These buffers need to be freed
and packet dropped.

Signed-off-by: Padmanabh Ratnakar &lt;padmanabh.ratnakar@emulex.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
