Hi Kalle,
On Tuesday 25 July 2017 06:25 PM, Kalle Valo wrote:
Arvind Yadav writes:
attribute_groups are not supposed to change at runtime. So mark the
non-const structs as const.
Arvind Yadav (10):
[PATCH v2 01/10] net: cdc_ncm: constify attribute_group structures.
[PATCH v2 02/10] ne
Hi Kalle,
On Tuesday 25 July 2017 06:25 PM, Kalle Valo wrote:
Arvind Yadav writes:
attribute_groups are not supposed to change at runtime. So mark the
non-const structs as const.
Arvind Yadav (10):
[PATCH v2 01/10] net: cdc_ncm: constify attribute_group structures.
[PATCH v2 02/10] ne
FYI, we noticed the following commit:
commit: e859afe1ee0c5ae981c55387ccd45eba258a7842 ("lib: test_rhashtable: fix
for large entry counts")
https://git.kernel.org/cgit/linux/kernel/git/davem/net.git master
in testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -m 420M
caused below
In dccp_feat_init, when ccid_get_builtin_ccids failsto alloc
memory for rx.val, it should free tx.val before returning an
error.
Signed-off-by: Xin Long
---
net/dccp/feat.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/net/dccp/feat.c b/net/dccp/feat.c
index 1704948.
The patch "dccp: fix a memleak that dccp_ipv6 doesn't put reqsk
properly" fixed reqsk refcnt leak for dccp_ipv6. The same issue
exists on dccp_ipv4.
This patch is to fix it for dccp_ipv4.
Signed-off-by: Xin Long
---
net/dccp/ipv4.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/dccp/ip
In dccp_v6_conn_request, after reqsk gets alloced and hashed into
ehash table, reqsk's refcnt is set 3. one is for req->rsk_timer,
one is for hlist, and the other one is for current using.
The problem is when dccp_v6_conn_request returns and finishes using
reqsk, it doesn't put reqsk. This will ca
Hi Thomas,
I tested patchset on A8040-DB, everything seems fine.
Best regards,
Marcin
2017-07-25 17:55 GMT+02:00 Thomas Petazzoni
:
> Hello,
>
> So far, the mvpp2 driver was using an hrtimer to handle TX
> completion. This patch series adds support for using TX interrupts
> (for each CPU) on PPv
Tue, Jul 25, 2017 at 07:13:44AM CEST, jakub.kicin...@netronome.com wrote:
>We are still in position where we can suggest uniform naming
>convention for ndo_get_phys_port_name(). switchdev.txt file
>already contained a suggestion of how to name external ports.
>Since the use of switchdev for SR-IOV
On Wed, Jul 26, 2017 at 06:24:39AM +0200, Richard Cochran wrote:
> Thanks for coding this up. I'd like to get some broader review. On
> the next round, please include lkml, John Stultz, and Thomas Gleixner.
I just noticed that you already have lkml.
Thanks,
Richard
From: Marc Gonzalez
Date: Tue, 25 Jul 2017 14:35:03 +0200
> Before commit bf8f6952a233 ("Add blurb about RGMII") it was unclear
> whose responsibility it was to insert the required clock skew, and
> in hindsight, some PHY drivers got it wrong. The solution forward
> is to introduce a new property
From: Stephen Hemminger
Date: Mon, 24 Jul 2017 21:03:19 -0700
> The logic for computing page buffer scatter does not take into
> account the impact of compound pages. Therefore the optimization
> to compute number of slots was incorrect and could cause stack
> corruption a skb was sent with lots
Thanks for coding this up. I'd like to get some broader review. On
the next round, please include lkml, John Stultz, and Thomas Gleixner.
On Tue, Jul 25, 2017 at 03:24:18PM -0500, Grygorii Strashko wrote:
> @@ -217,6 +231,19 @@ struct ptp_clock *ptp_clock_register(struct
> ptp_clock_info *info
From: Arnd Bergmann
Date: Tue, 25 Jul 2017 17:35:50 +0200
> After removing the reset function, the freeze and restore functions
> are now unused when CONFIG_PM_SLEEP is disabled:
>
> drivers/net/virtio_net.c:1881:12: error: 'virtnet_restore_up' defined but not
> used [-Werror=unused-function]
>
From: Joel Stanley
Date: Tue, 25 Jul 2017 10:19:01 +0930
> The error paths set err, but it's not returned.
>
> I wondered if we should fix all of the callers to check the returned
> value, but Ben explains why the code is this way:
>
>> Most call sites ignore it on purpose. There's nothing we c
From: Felix Manlunas
Date: Mon, 24 Jul 2017 17:17:27 -0700
> From: Rick Farrington
>
> Signed-off-by: Rick Farrington
> Signed-off-by: Felix Manlunas
> ---
> drivers/net/ethernet/cavium/liquidio/octeon_console.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/dri
On 2017年07月25日 23:35, Arnd Bergmann wrote:
After removing the reset function, the freeze and restore functions
are now unused when CONFIG_PM_SLEEP is disabled:
drivers/net/virtio_net.c:1881:12: error: 'virtnet_restore_up' defined but not
used [-Werror=unused-function]
static int virtnet_res
On 2017年07月25日 05:29, Michael S. Tsirkin wrote:
On Wed, Jul 19, 2017 at 04:54:49PM +0800, Jason Wang wrote:
Current XDP implementation wants guest offloads feature to be disabled
on device. This is inconvenient and means guest can't benefit from
offloads if XDP is not used. This patch tries to
On Tue, 25 Jul 2017 21:48:15 -0400, Andy Gospodarek wrote:
> On Tue, Jul 25, 2017 at 03:26:47PM -0700, Jakub Kicinski wrote:
> > On Tue, 25 Jul 2017 11:22:41 -0400, Andy Gospodarek wrote:
> > > On Mon, Jul 24, 2017 at 10:13:44PM -0700, Jakub Kicinski wrote:
> > > > We are still in position wher
Ability to change geneve device attributes was added to kernel through
commit 5b861f6baa3a ("geneve: add rtnl changelink support"), however one
cannot do the same through ip-link(8) command. Changing the allowed
geneve device attributes using 'ip link set type geneve id
' currently fails with 'o
Hi, Florian
the solution is better and also can fix the problem I originally
reported. Thank for your immediate help :-)
Sean
On Mon, 2017-07-24 at 10:49 -0700, Florian Fainelli wrote:
> The mt7530 driver has its dsa_switch_ops::get_tag_protocol function
> check ds->cpu_port_mask to issue a war
> -Original Message-
> From: Neal Cardwell [mailto:ncardw...@google.com]
> Sent: Tuesday, July 25, 2017 9:30 PM
> To: maowenan
> Cc: Netdev; David Miller; weiyongjun (A); Chenweilong; Yuchung Cheng;
> Nandita Dukkipati
> Subject: Re: [PATCH net-next] TLP: Don't reschedule PTO when there's
On Tue, Jul 25, 2017 at 03:26:47PM -0700, Jakub Kicinski wrote:
> On Tue, 25 Jul 2017 11:22:41 -0400, Andy Gospodarek wrote:
> > On Mon, Jul 24, 2017 at 10:13:44PM -0700, Jakub Kicinski wrote:
> > > We are still in position where we can suggest uniform naming
> > > convention for ndo_get_phys_port_
> -Original Message-
> From: Sergei Shtylyov [mailto:sergei.shtyl...@cogentembedded.com]
> Sent: Tuesday, July 25, 2017 5:55 PM
> To: maowenan; netdev@vger.kernel.org; da...@davemloft.net; weiyongjun
> (A); Chenweilong
> Subject: Re: [PATCH net-next] TLP: Don't reschedule PTO when there's
Hi Thomas,
On Tue, Jul 25, 2017 at 03:17:48PM +0200, Thomas Petazzoni wrote:
> On Mon, 24 Jul 2017 15:48:40 +0200, Antoine Tenart wrote:
> > +
> > + port->link_irq = of_irq_get_byname(port_node, "link");
> > + if (port->link_irq == -EPROBE_DEFER) {
> > + err =
From: Tony Nguyen
This patch adds a check to ensure that adding the MAC filter was
successful before setting the MACVLAN. If it was unsuccessful, propagate
the error.
Signed-off-by: Tony Nguyen
Tested-by: Andrew Bowers
Signed-off-by: Jeff Kirsher
---
drivers/net/ethernet/intel/ixgbe/ixgbe_s
From: Tony Nguyen
Flow control autonegotiation is not supported for fiber on X553. Add
device ID checks in ixgbe_device_supports_autoneg_fc() to return the
appropriate value.
Signed-off-by: Tony Nguyen
Signed-off-by: Emil Tantilov
Tested-by: Andrew Bowers
Signed-off-by: Jeff Kirsher
---
dr
From: Tony Nguyen
The MAC register NW_MNG_IF_SEL fields have been redefined for
X553. These changes impact the iXFI driver code flow. Since iXFI is
only supported in X552, add MAC checks for iXFI flows.
Signed-off-by: Tony Nguyen
Signed-off-by: Paul Greenwalt
Tested-by: Andrew Bowers
Signed-o
From: Tony Nguyen
Enable LASI interrupts on X552 devices in order to receive notifications of
link configurations of the external PHY and support the configuration of
the internal iXFI link since iXFI does not support auto-negotiation. This
is not required for X553 devices; add a check to avoid
From: Tony Nguyen
Flow control autonegotiation is not supported for XFI. Make sure that
ixgbe_device_supports_autoneg_fc() returns false and
hw->fc.disable_fc_autoneg is set to true to avoid running the fc_autoneg
function for that device.
Signed-off-by: Tony Nguyen
Signed-off-by: Emil Tantilo
This series contains updates to ixgbe only.
Tony provides all of the changes in the series, starting with adding a
check to ensure that adding a MAC filter was successful, before setting the
MACVLAN. In order to receive notifications of link configurations of the
external PHY and support the conf
On 07/26/2017 01:15 AM, Jakub Kicinski wrote:
On Wed, 26 Jul 2017 00:59:49 +0200, Daniel Borkmann wrote:
@@ -418,6 +420,8 @@ static void test_bpf_obj_id(void)
nr_id_found++;
err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len);
+ prog_infos[
On Tue, 25 Jul 2017 16:15:47 -0700, Jakub Kicinski wrote:
> On Wed, 26 Jul 2017 00:59:49 +0200, Daniel Borkmann wrote:
> > > @@ -418,6 +420,8 @@ static void test_bpf_obj_id(void)
> > > nr_id_found++;
> > >
> > > err = bpf_obj_get_info_by_fd(prog_fd, &prog_info,
On Wed, 26 Jul 2017 00:59:49 +0200, Daniel Borkmann wrote:
> > @@ -418,6 +420,8 @@ static void test_bpf_obj_id(void)
> > nr_id_found++;
> >
> > err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len);
> > + prog_infos[i].jited_prog_insns = 0;
> > + p
On 07/26/2017 12:16 AM, Jakub Kicinski wrote:
The buffer passed to bpf_obj_get_info_by_fd() should be initialized
to zeros. Kernel will enforce that to guarantee we can safely extend
info structures in the future.
Making the bpf_obj_get_info_by_fd() call in libbpf perform the zeroing
is problem
On Tue, 25 Jul 2017 15:25:19 +0530, Sathya Perla wrote:
> >> Suggested naming convention is "swXpYsZ", where X is the switch name or
> >> ID, Y
> >> is the port name or ID, and Z is the sub-port name or ID. For example,
> >> sw1p1s0
> >> would be sub-port 0 on port 1 on switch 1.
> >
> > So fo
On Tue, 25 Jul 2017 11:22:41 -0400, Andy Gospodarek wrote:
> On Mon, Jul 24, 2017 at 10:13:44PM -0700, Jakub Kicinski wrote:
> > We are still in position where we can suggest uniform naming
> > convention for ndo_get_phys_port_name(). switchdev.txt file
> > already contained a suggestion of how to
The buffer passed to bpf_obj_get_info_by_fd() should be initialized
to zeros. Kernel will enforce that to guarantee we can safely extend
info structures in the future.
Making the bpf_obj_get_info_by_fd() call in libbpf perform the zeroing
is problematic, however, since some members of the info st
On Tue, Jul 25, 2017 at 9:44 AM, Cong Wang wrote:
> Commit de77ecd4ef02 ("bonding: improve link-status update in mii-monitoring")
> moves link status commitment into bond_mii_monitor(), but it still relies
> on the return value of bond_miimon_inspect() as the hint. We need to return
> non-zero as
> As the only caller of dma_supported() outside of DMA API internals, the
> qtfnmac driver stands out and invites scrutiny. Thankfully, it's not
> being used for evil, but it is entirely redundant, since it open-codes a
> check that the DMA mask setting functions are going to perform anyway.
> In f
On Mon, Jul 24, 2017 at 01:34:55PM -0700, David Miller wrote:
> From: Shaohua Li
> Date: Tue, 18 Jul 2017 12:03:37 -0700
>
> > + /* Since this is being sent on the wire obfuscate hash a bit
> > +* to minimize possbility that any useful information to an
> > +* attacker is leaked. Only l
On Mon, Jul 24, 2017 at 04:12:53PM -0700, Cong Wang wrote:
> On Mon, Jul 24, 2017 at 1:34 PM, David Miller wrote:
> > From: Shaohua Li
> > Date: Tue, 18 Jul 2017 12:03:37 -0700
> >
> >> + /* Since this is being sent on the wire obfuscate hash a bit
> >> + * to minimize possbility that an
On Tue, 25 Jul 2017 13:04:20 -0700
Stephen Hemminger wrote:
> Optimize how receive completion ring are managed.
>* Allocate only as many slots as needed for all buffers from host
>* Allocate before setting up sub channel for better error detection
>* Don't need to keep copy of initial
Many PTP drivers required to perform some asynchronous or periodic work,
like periodically handling PHC counter overflow or handle delayed timestamp
for RX/TX network packets. In most of the cases, such work is implemented
using workqueues. Unfortunately, Kernel workqueues might introduce
significa
With the low speed Ethernet connection CPDMA notification about packet
processing can be received before CPTS TX timestamp event, which is set
when packet actually left CPSW while cpdma notification is sent when packet
pushed in CPSW fifo. As result, when connection is slow and CPU is fast
enough
There could be significant delay in CPTS work schedule under high system
load and on -RT which could cause CPTS misbehavior due to internal counter
overflow. Usage of own kthread_worker allows to avoid such kind of issues
and makes it possible to tune priority of CPTS kthread_worker thread on -RT.
Patch3 - With the low Ethernet connection speed cpdma notification about packet
processing can be received before CPTS TX timestamp event, which is set
when packet actually left CPSW while cpdma notification is sent when packet
pushed in CPSW fifo. As result, when connection is slow and CPU is fas
This includes a bunch of fixups for issues reported by sparse and
lockdep.
* ethtool routines can assume RTNL
* send is done with RCU lock (and BH disable)
Most of the changes involve passing internal device struct (netvsc)
as parameter, so that code called in both initialization and changes
The error and normal case got swapped.
Reported-by: Dan Carpenter
Signed-off-by: Stephen Hemminger
---
drivers/net/hyperv/netvsc_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 262486ce8e2a..f1eaf6
The default value of send and receive buffer area for host DMA
is much larger than it needs to be. Experimentation shows that
4M receive and 1M send is sufficient.
Make the size a module parameter so that it can be adjusted
as needed for testing or special needs.
Signed-off-by: Stephen Hemminger
The first two are more fixes to problems introduced in
latest net-next changes. The rest are changes to improve performance
and reduce memory footprint. The driver used to allocate large
amounts of memory (33M) per interface, this reduces that down to
about 7M.
Stephen Hemminger (5):
netvsc: f
Optimize how receive completion ring are managed.
* Allocate only as many slots as needed for all buffers from host
* Allocate before setting up sub channel for better error detection
* Don't need to keep copy of initial receive section message
* Only needt keep the transaction id, stat
Latency improvement related to NAPI conversion.
If all packets are processed from receive ring then need
to signal host.
Signed-off-by: Stephen Hemminger
---
drivers/net/hyperv/netvsc.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/net/hyperv/netvsc.c b/
Aviad Krawczyk :
[...]
> module_pci_driver - is not used in other drivers in the same segments, it
> is necessary ?
/me checks... Ok, there seems to be some overenthusiastic copy'paste.
See drivers/net/ethernet/intel/ixgb/ixgb_main.c:
[...]
/**
* ixgb_init_module - Driver Registration Routine
From: Michael Chan
Date: Tue, 25 Jul 2017 13:28:38 -0400
> Fix 2 more kbuild errors (the first one already fixed by DaveM), and rename
> the physical port name.
Series applied, thanks for working to clear this all up.
On 07/25/2017 08:17 PM, Jakub Kicinski wrote:
Add a new target to install the bpf.h header to $(prefix)/include/bpf/
directory. This is necessary to build standalone applications using
libbpf, without the need to clone the kernel sources and point to them.
Signed-off-by: Jakub Kicinski
Looks
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master
head: dce4551cb2adb1ac9a30f8ab5299d614392b3cff
commit: dce4551cb2adb1ac9a30f8ab5299d614392b3cff [16/16] udp: preserve head
state for IP_CMSG_PASSSEC
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linu
Every patch series must start with an appropriate "[PATCH ... 0/N] ..." header
posting explaining what the patch series is doing, how it is doing it, and
why it is doing it that way.
Thank you.
From: Phil Sutter
Date: Tue, 25 Jul 2017 13:36:21 +0200
> I forgot one spot when introducing struct test_obj_val.
>
> Fixes: e859afe1ee0c5 ("lib: test_rhashtable: fix for large entry counts")
> Reported by: kernel test robot
>
> Signed-off-by: Phil Sutter
Please don't put empty lines in the
From: Marc Gonzalez
Date: Tue, 25 Jul 2017 11:08:15 +0200
> Commit e5a03bfd873c2 ("phy: Add an mdio_device structure")
> introduced a spurious trailing semicolon. Remove it.
>
> Signed-off-by: Marc Gonzalez
Good catch, applied, thanks.
From: Marc Gonzalez
Date: Tue, 25 Jul 2017 11:31:46 +0200
> In the current code, old and new PHY states are always logged.
> From now on, log only PHY state transitions.
>
> Signed-off-by: Marc Gonzalez
> ---
> drivers/net/phy/phy.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
From: Stephen Hemminger
Date: Mon, 24 Jul 2017 10:25:17 -0700
> Various fixes for warnings in network code and drivers.
Series applied, thanks Stephen.
From: Jakub Kicinski
Date: Tue, 25 Jul 2017 00:51:08 -0700
> From: Dirk van der Merwe
>
> When a netdev (PF netdev or representor) is opened or closed, set the
> physical port config bit appropriately - which powers UP/DOWN the PHY
> module for the physical interface.
>
> The PHY is powered fi
aFrom: Tonghao Zhang
Date: Tue, 25 Jul 2017 00:00:26 -0700
> we can use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
> 1. drivers/net/appletalk/ipddp.c
> 2. drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c
>
> Generated by: scripts/coccinelle/api/ptr_ret.cocci
>
> Signed-off-by
Hi Egil,
Egil Hjelmeland writes:
> Fixes after testing on actual HW:
>
> - lan9303_mdio_write()/_read() must multiply register number
> by 4 to get offset
>
> - Indirect access (PMI) to phy register only work in I2C mode. In
> MDIO mode phy registers must be accessed directly. Introduced
>
On Sun, 23 Jul 2017 01:22:17 +0200
Daniel Borkmann wrote:
> Two minor updates to the BPF code, first one makes use of the
> recently exposed owner_jited in fdinfo to report whether a
> load issue related to tail calls occured, and second one fixes
> up custom mount of bpf fs when passed via env.
On Sun, 23 Jul 2017 00:42:02 +0200
e...@bouttier.eu wrote:
> From: Élie Bouttier
>
> This patch replaces exits with returns in ip route
> commands.
>
> Allows to continue when invoked with ip -batch.
>
> Signed-off-by: Élie Bouttier
Sure applied, but any attempt to continue after some of the
Begin forwarded message:
Date: Mon, 24 Jul 2017 20:52:01 +
From: bugzilla-dae...@bugzilla.kernel.org
To: step...@networkplumber.org
Subject: [Bug 196469] New: UDPv4+UDPv6 receive silently fails after heavy UDP
load
https://bugzilla.kernel.org/show_bug.cgi?id=196469
Bug ID: 19
Apparently netpoll_setup() assumes that netpoll.dev_name is a pointer
when checking if the device name is set:
if (np->dev_name) {
...
However the field is a character array, therefore the condition always
yields true. Check instead whether the first byte of the array has a
non-zero value.
Sig
On 07/25/2017 08:20 PM, Jakub Kicinski wrote:
On Tue, 25 Jul 2017 18:40:23 +0200, Daniel Borkmann wrote:
[ +Martin ]
Sorry, I thought I CCed Martin.
On 07/24/2017 11:22 PM, Jakub Kicinski wrote:
To read translated and jited instructions from the kernel,
one has to set certain pointers of st
On Tue, 25 Jul 2017 18:40:23 +0200, Daniel Borkmann wrote:
> [ +Martin ]
Sorry, I thought I CCed Martin.
> On 07/24/2017 11:22 PM, Jakub Kicinski wrote:
> > To read translated and jited instructions from the kernel,
> > one has to set certain pointers of struct bpf_prog_info to
> > pre-allocated
Add a new target to install the bpf.h header to $(prefix)/include/bpf/
directory. This is necessary to build standalone applications using
libbpf, without the need to clone the kernel sources and point to them.
Signed-off-by: Jakub Kicinski
---
v2:
- make the header installation similar to to
On 07/25/2017 11:32 AM, Oliver Hartkopp wrote:
>
>> + max-data-speed:a positive non 0 value that determines the max
>> data rate
>> +that can be used in CAN-FD mode. A value of -1 implies
>> +CAN-FD is not supported by the transceiver.
>> +
>> +Examples:
>
> (..)
>
Allowing per-port access to Switch Engine Broadcast Throttling Register
Also added lan9303_write_switch_reg_mask()
Signed-off-by: Egil Hjelmeland
---
drivers/net/dsa/lan9303-core.c | 83 ++
1 file changed, 83 insertions(+)
diff --git a/drivers/net/dsa/la
For some mysterious reason enable switch fabric port 0 TX fails to
work, when the TX has previous been disabled. Resolved by not
disable/enable switch fabric port 0 at startup. Port 1 and 2 are
still disabled in early init.
Signed-off-by: Egil Hjelmeland
---
drivers/net/dsa/lan9303-core.c | 7 --
On July 25, 2017 4:41:32 AM PDT, Mason wrote:
>On 25/07/2017 12:51, Mason wrote:
>
>> Moving the call to phy_stop() down after all the MAC tear down
>> avoids the hang.
>>
>> As far as I understand, when we are shutting everything down,
>> we don't need the phy_state_machine to run asynchronously
On Mon, Jul 24, 2017 at 5:08 PM, Hangbin Liu wrote:
> But what we want in inet6_rtm_getroute() and rt6_dump_route() is to
> get/dump the route info. So we should get the info even it's unreachable or
> prohibit.
If you want to dump prohibit/blackhole entry, then you have to check
for null_entry,
From: Sathya Perla
Fix the phys_port_name for the external physical port to be in
"pA" format and that of VF-rep to be in "pCvfD" format as
suggested by Jakub Kicinski.
Fixes: c124a62ff2dd ("bnxt_en: add support for port_attr_get and
get_phys_port_name")
Signed-off-by: Sathya Perla
Signed-off-
From: Sathya Perla
This fixes the build error:
‘struct net_device’ has no member named ‘switchdev_ops’
Reported-by: kbuild test robot
Fixes: c124a62ff2dd ("bnxt_en: add support for port_attr_get and and
get_phys_port_name")
Signed-off-by: Sathya Perla
Signed-off-by: Michael Chan
---
drivers
Fix 2 more kbuild errors (the first one already fixed by DaveM), and rename
the physical port name.
Sathya Perla (3):
bnxt_en: include bnxt_vfr.c code under CONFIG_BNXT_SRIOV switch
bnxt_en: use SWITCHDEV_SET_OPS() for setting vf_rep_switchdev_ops
bnxt_en: fix switchdev port naming for exter
From: Sathya Perla
And define empty functions in bnxt_vfr.h when CONFIG_BNXT_SRIOV is not
defined.
This fixes build error when CONFIG_BNXT_SRIOV is switched off:
>> drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c:165:16: error: 'struct
>> bnxt' has no member named 'sriov_lock'
Reported-by: kbuild
Allowing dsa drivers to attach sysfs nodes.
Signed-off-by: Egil Hjelmeland
---
include/net/dsa.h | 1 +
net/dsa/slave.c | 10 ++
2 files changed, 11 insertions(+)
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 88da272d20d0..a71c0a2401ee 100644
--- a/include/net/dsa.h
+++ b/
Added functions for accessing / managing the lan9303 ALR (Address Logic
Resolution).
Implemented DSA methods: set_addr, port_fast_age, port_fdb_prepare,
port_fdb_add, port_fdb_del, port_fdb_dump, port_mdb_prepare,
port_mdb_add and port_mdb_del.
Since the lan9303 do not offer reading specific ALR
Signed-off-by: Egil Hjelmeland
---
Documentation/networking/dsa/lan9303.txt | 63
1 file changed, 63 insertions(+)
create mode 100644 Documentation/networking/dsa/lan9303.txt
diff --git a/Documentation/networking/dsa/lan9303.txt
b/Documentation/networking/dsa/l
Saving 2628 bytes.
Signed-off-by: Egil Hjelmeland
Reviewed-by: Florian Fainelli
---
drivers/net/dsa/lan9303-core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/dsa/lan9303-core.c b/drivers/net/dsa/lan9303-core.c
index dc95973d62ed..ad7a4c72e1fb 100644
--- a
From: Paolo Abeni
Date: Tue, 25 Jul 2017 17:57:47 +0200
> Paul Moore reported a SELinux/IP_PASSSEC regression
> caused by missing skb->sp at recvmsg() time. We need to
> preserve the skb head state to process the IP_CMSG_PASSSEC
> cmsg.
>
> With this commit we avoid releasing the skb head state
Hi,
Today I did test on ArchLinuxArm the Kernel v4.13-rc2. On downloading
the linux git source the network will eventually get stalled. Here are
the information
Over SSH (network works).
[root@alarm ~]# uname -a
Linux alarm 4.13.0-rc2-1-ARCH #1 SMP Mon Jul 24 20:02:50 MDT 2017
aarch64 GNU/Linux
[
On 07/24/2017 11:22 PM, Jakub Kicinski wrote:
Install the bpf.h header to $(prefix)/include/bpf/ directory.
This is necessary to build standalone applications using libbpf,
without the need to clone the kernel sources and point to them.
Signed-off-by: Jakub Kicinski
---
I'm not 100% sure if it'
When both user ports are joined to the same bridge, the normal
HW MAC learning is enabled. This means that unicast traffic is forwarded
in HW. Support for STP is also added.
If one of the user ports leave the bridge,
the ports goes back to the initial separated operation.
Added brigde methods por
Commit de77ecd4ef02 ("bonding: improve link-status update in mii-monitoring")
moves link status commitment into bond_mii_monitor(), but it still relies
on the return value of bond_miimon_inspect() as the hint. We need to return
non-zero as long as we propose a link status change.
Fixes: de77ecd4ef
lan9303_enable_packet_processing, lan9303_disable_packet_processing()
Pass port number (0,1,2) as parameter instead of port offset.
Simplify accordingly.
Signed-off-by: Egil Hjelmeland
---
drivers/net/dsa/lan9303-core.c | 66 --
1 file changed, 32 insertio
This series extends the LAN9303 3 port switch DSA driver. Highlights:
- Make the MDIO interface work
- Bridging: Unicast offload
- Bridging: Added fdb/mdb handling
- Bridging: STP support
- Documentation
Changes v1 -> v2:
- sorted out emailing issues, threading and date. And sent from privat
This makes the driver react to device tree "fixed-link" declaration
on CPU port.
- turn off autonegotiation
- force speed 10 or 100 mb/s
- force duplex mode
Signed-off-by: Egil Hjelmeland
---
drivers/net/dsa/lan9303-core.c | 33 +
1 file changed, 33 insertions(+)
[ +Martin ]
On 07/24/2017 11:22 PM, Jakub Kicinski wrote:
To read translated and jited instructions from the kernel,
one has to set certain pointers of struct bpf_prog_info to
pre-allocated user buffers. Unfortunately, the existing
bpf_obj_get_info_by_fd() helper zeros struct bpf_prog_info
befo
Fixes after testing on actual HW:
- lan9303_mdio_write()/_read() must multiply register number
by 4 to get offset
- Indirect access (PMI) to phy register only work in I2C mode. In
MDIO mode phy registers must be accessed directly. Introduced
struct lan9303_phy_ops to handle the two modes. R
On Tue, Jul 25, 2017 at 8:29 AM, Arnd Bergmann wrote:
> The sriov_lock is used to serialize the sriov code with the vfr code.
> However, when SRIOV is disabled, the lock is not there at all, leading
> to a build error:
>
> drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c: In function
> 'bnxt_dl_eswi
On Tue, Jul 25, 2017 at 3:49 AM, Sathya Perla wrote:
> This fixes build error when CONFIG_BNXT_SRIOV is switched off:
>>> drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c:165:16: error: 'struct
>>> bnxt' has no member named 'sriov_lock'
>
> Reported-by: kbuild test robot
> Fixes: 4ab0c6a8ffd7 ("bnxt
+ max-data-speed: a positive non 0 value that determines the max data rate
+ that can be used in CAN-FD mode. A value of -1 implies
+ CAN-FD is not supported by the transceiver.
+
+Examples:
(..)
+ fixed-transceiver {
+ ma
Paul Moore reported a SELinux/IP_PASSSEC regression
caused by missing skb->sp at recvmsg() time. We need to
preserve the skb head state to process the IP_CMSG_PASSSEC
cmsg.
With this commit we avoid releasing the skb head state in the
BH even if a secpath is attached to the current skb, and stores
Currently, the global variables rxq_number and txq_number hold the
number of per-port TXQs and RXQs. Until now, such numbers were
constant regardless of the driver configuration. As we are going to
introduce different modes for TX and RX queues, these numbers will
depend on the configuration (PPv2.
This commit adds the support for two related features:
- Support for TX interrupts, with one interrupt for each CPU
- Support for different RX queue distribution modes
MVPP2_QDIST_SINGLE_MODE where a single interrupt, shared by all
CPUs, receives the RX events, and MVPP2_QDIST_MULTI_MODE,
1 - 100 of 203 matches
Mail list logo