<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/net/ethernet/emulex/benet/be_cmds.c, branch linux-4.3.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.3.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.3.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2015-10-13T11:32:45Z</updated>
<entry>
<title>be2net: remove vlan promisc capability from VF's profile descriptors</title>
<updated>2015-10-13T11:32:45Z</updated>
<author>
<name>Kalesh AP</name>
<email>kalesh.purayil@avagotech.com</email>
</author>
<published>2015-10-12T07:47:21Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=196e3735fa66c8340d6fff9ec81f6201ffc60b7d'/>
<id>urn:sha1:196e3735fa66c8340d6fff9ec81f6201ffc60b7d</id>
<content type='text'>
The commit 435452aa8847 ("Prevent VFs from enabling VLAN promiscuous mode")
fixed the PF driver to not include the VLAN promisc capability while
provisioning the interface for a VF. But the fix did not remove this
capability from the profile descriptor of the VF. This causes the VF
driver to request this capability when it tries to create it's interface
at probe time.  This could potentailly cause the VF probe to fail if the
FW enforces strict checking of the flags based on what was provisoned
by the PF.  This strict checking is not being done by FW currently but
will be fixed in a future version. This patch fixes this issue by updating
the VF's profile descriptor so that they match the interface capability
flags provisioned by the PF.

Fixes: 435452aa8847 ("Prevent VFs from enabling VLAN promiscuous mode")
Signed-off-by: Kalesh AP &lt;kalesh.purayil@avagotech.com&gt;
Signed-off-by: Sathya Perla &lt;sathya.perla@avagotech.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: set pci_func_num while issuing GET_PROFILE_CONFIG cmd</title>
<updated>2015-10-13T11:32:44Z</updated>
<author>
<name>Somnath Kotur</name>
<email>somnath.kotur@emulex.com</email>
</author>
<published>2015-10-12T07:47:20Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=72ef3a88fa8e225301aaea296ffc95407de21986'/>
<id>urn:sha1:72ef3a88fa8e225301aaea296ffc95407de21986</id>
<content type='text'>
The FW requires the pf_num field in the cmd hdr to be set for it to return
the specific function's descriptors in the GET_PROFILE_CONFIG cmd. If not
set, the FW returns the descriptors of all the functions on the device.
If the first descriptor is not what is being queried for, the driver will
read wrong data. This patch fixes this issue by using the GET_CNTL_ATTRIB
cmd to query the real pci_func_num of a function and then uses it in the
GET_PROFILE_CONFIG cmd.

Signed-off-by: Somnath Kotur &lt;somnath.kotur@emulex.com&gt;
Signed-off-by: Sathya Perla &lt;sathya.perla@avagotech.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: release mcc-lock in a failure case in be_cmd_notify_wait()</title>
<updated>2015-10-13T11:32:42Z</updated>
<author>
<name>Suresh Reddy</name>
<email>Suresh.Reddy@avagotech.com</email>
</author>
<published>2015-10-12T07:47:18Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0c8845679f3b8f030f3bafcdf226ed92545fa2a9'/>
<id>urn:sha1:0c8845679f3b8f030f3bafcdf226ed92545fa2a9</id>
<content type='text'>
The mcc/mbox lock is not being released when be_cmd_copy() returns
an error.

Signed-off-by: Suresh Reddy &lt;suresh.reddy@avagotech.com&gt;
Signed-off-by: Sathya Perla &lt;sathya.perla@avagotech.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: Revert "make the RX_FILTER command asynchronous" commit</title>
<updated>2015-09-06T05:01:21Z</updated>
<author>
<name>Sathya Perla</name>
<email>sathya.perla@avagotech.com</email>
</author>
<published>2015-09-03T11:41:53Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b65888796b72b677928527b17eeb8e935b767146'/>
<id>urn:sha1:b65888796b72b677928527b17eeb8e935b767146</id>
<content type='text'>
The be_cmd_rx_filter() routine sends a non-embedded cmd to the FW and used
a pre-allocated dma memory to hold the cmd payload. This worked fine when
this cmd was synchronous. This cmd was changed to asynchronous mode by the
commit 8af65c2f4("make the RX_FILTER command asynchronous"). So now when
there are two quick invocations of this cmd, the 2nd request may end up
overwriting the first request, causing FW cmd corruption.

This patch reverts the offending commit and hence fixes the regression.

Fixes: 8af65c2f4("be2net: make the RX_FILTER command asynchronous")
Signed-off-by: Sathya Perla &lt;sathya.perla@avagotech.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: support ndo_get_phys_port_id()</title>
<updated>2015-07-25T05:41:22Z</updated>
<author>
<name>Sriharsha Basavapatna</name>
<email>sriharsha.basavapatna@avagotech.com</email>
</author>
<published>2015-07-22T05:45:12Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a155a5db9389c4088c0901e665002332f2503660'/>
<id>urn:sha1:a155a5db9389c4088c0901e665002332f2503660</id>
<content type='text'>
Add be_get_phys_port_id() function to report physical port id. The port id
should be unique across different be2net devices in the system. We use the
chip serial number along with the physical port number for this.

Signed-off-by: Sriharsha Basavapatna &lt;sriharsha.basavapatna@avagotech.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: make SET_LOOPBACK_MODE cmd asynchrounous</title>
<updated>2015-07-11T06:24:30Z</updated>
<author>
<name>Suresh Reddy</name>
<email>Suresh.Reddy@emulex.com</email>
</author>
<published>2015-07-10T09:32:50Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=9c8559750cd7b7936dd38810fc2110fc91d7d527'/>
<id>urn:sha1:9c8559750cd7b7936dd38810fc2110fc91d7d527</id>
<content type='text'>
The SET_LOOPBACK_MODE command is always issued from ethtool only in a
process context. So, while waiting for the cmd to complete, the driver
can sleep instead of holding spin_lock_bh() on the mcc_lock. This is done
by calling be_mcc_notify() instead of be_mcc_notify_wait() (that returns
only after the cmd completes while the MCCQ is locked).

Signed-off-by: Suresh Reddy &lt;suresh.reddy@avagotech.com&gt;
Signed-off-by: Sathya Perla &lt;sathya.perla@avagotech.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: make the RX_FILTER command asynchronous</title>
<updated>2015-07-11T06:24:30Z</updated>
<author>
<name>Suresh Reddy</name>
<email>suresh.reddy@avagotech.com</email>
</author>
<published>2015-07-10T09:32:49Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8af65c2f4deeb02a128c5cf29fa351b70bf16424'/>
<id>urn:sha1:8af65c2f4deeb02a128c5cf29fa351b70bf16424</id>
<content type='text'>
This fix makes the RX_FILTER cmd asynchronous, i.e., the caller issues
this cmd and doesn't wait for a completion from the FW. If the FW/adapter
is in an error state, this change helps in not holding up the rtnl_lock
and keeping bottom halves disabled while the driver timesout waiting for
a response from the FW.

Signed-off-by: Suresh Reddy &lt;suresh.reddy@avagotech.com&gt;
Signed-off-by: Sathya Perla &lt;sathya.perla@avagotech.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>be2net: return error status from be_mcc_notify()</title>
<updated>2015-07-11T06:24:30Z</updated>
<author>
<name>Suresh Reddy</name>
<email>Suresh.Reddy@emulex.com</email>
</author>
<published>2015-07-10T09:32:48Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=efaa408e964012225897e87d9aad97a4d0ebc1d5'/>
<id>urn:sha1:efaa408e964012225897e87d9aad97a4d0ebc1d5</id>
<content type='text'>
When the adapter is in error state, return error from be_mcc_notify()
so that the caller routines need not sleep waiting for a response.

Signed-off-by: Suresh Reddy &lt;suresh.reddy@avagotech.com&gt;
Signed-off-by: Sathya Perla &lt;sathya.perla@avagotech.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net</title>
<updated>2015-06-09T03:06:56Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2015-06-09T03:06:56Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=941742f49762ba4c908510f036b09a46c1b14513'/>
<id>urn:sha1:941742f49762ba4c908510f036b09a46c1b14513</id>
<content type='text'>
</content>
</entry>
<entry>
<title>be2net: Replace dma/pci_alloc_coherent() calls with dma_zalloc_coherent()</title>
<updated>2015-06-07T22:35:11Z</updated>
<author>
<name>Sriharsha Basavapatna</name>
<email>sriharsha.basavapatna@avagotech.com</email>
</author>
<published>2015-06-05T10:03:59Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e51000db4c880165eab06ec0990605f24e75203f'/>
<id>urn:sha1:e51000db4c880165eab06ec0990605f24e75203f</id>
<content type='text'>
There are several places in the driver (all in control paths) where
coherent dma memory is being allocated using either dma_alloc_coherent()
or the deprecated pci_alloc_consistent(). All these calls should be
changed to use dma_zalloc_coherent() to avoid uninitialized fields in
data structures backed by this memory.

Reported-by: Joerg Roedel &lt;jroedel@suse.de&gt;
Tested-by: Joerg Roedel &lt;jroedel@suse.de&gt;
Signed-off-by: Sriharsha Basavapatna &lt;sriharsha.basavapatna@avagotech.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
