Tue, May 21, 2019 at 04:45:53PM CEST, [email protected] wrote:
>On Tue, 21 May 2019 08:15:36 +0200
>Jiri Pirko wrote:
>
>> +if (static_branch_unlikely(&generic_xdp_needed_key)) {
>> +int ret2;
>> +
>> +preempt_dis
From: Jiri Pirko
Prevent misbehavior of drivers who would not set port type for longer
period of time. Drivers should always set port type. Do WARN if that
happens.
Note that it is perfectly fine to temporarily not have the type set,
during initialization and port type change.
Signed-off-by
From: Jiri Pirko
Benefit from the devlink flash update implementation and ethtool
fallback to it and move firmware flash implementation there.
Signed-off-by: Jiri Pirko
---
drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 --
.../ethernet/mellanox/mlx5/core/en_ethtool.c | 35
From: Jiri Pirko
When user is flashing device using devlink, he currenly does not see any
information about what is going on, percentages, etc.
Drivers, for example mlxsw and mlx5, have notion about the progress
and what is happening. This patchset exposes this progress
information to userspace
From: Jiri Pirko
Benefit from the devlink flash update implementation and ethtool
fallback to it and move firmware flash implementation there.
Signed-off-by: Jiri Pirko
---
drivers/net/ethernet/mellanox/mlxsw/core.c| 15 ++
drivers/net/ethernet/mellanox/mlxsw/core.h| 3
From: Jiri Pirko
Currently the error messages are printed to dmesg. Propagate them also
to directly to user doing the flashing through extack.
Signed-off-by: Jiri Pirko
---
drivers/net/ethernet/mellanox/mlx5/core/fw.c | 6 ++--
.../net/ethernet/mellanox/mlx5/core/main.c| 2
From: Jiri Pirko
Introduce a function to be called from drivers during flash. It sends
notification to userspace about flash update progress.
Signed-off-by: Jiri Pirko
---
include/net/devlink.h| 8 +++
include/uapi/linux/devlink.h | 5 ++
net/core/devlink.c | 102
From: Jiri Pirko
Implement mlxfw status_notify op by passing notification down to
devlink. Also notify about flash update begin and end.
Signed-off-by: Jiri Pirko
---
drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 18 +-
1 file changed, 17 insertions(+), 1 deletion(-)
diff
From: Jiri Pirko
Add new op status_notify which is called to update the user about
flashing status.
Signed-off-by: Jiri Pirko
---
drivers/net/ethernet/mellanox/mlxfw/mlxfw.h | 4
.../net/ethernet/mellanox/mlxfw/mlxfw_fsm.c | 24 +++
2 files changed, 28 insertions
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
drivers/net/netdevsim/dev.c | 35 +++
1 file changed, 35 insertions(+)
diff --git a/drivers/net/netdevsim/dev.c b/drivers/net/netdevsim/dev.c
index b509b941d5ca..c15b86f9cd2b 100644
--- a/drivers/net/netdevsim
From: Jiri Pirko
Kernel sends notifications about flash update status, so implement these
messages for monitoring.
Signed-off-by: Jiri Pirko
---
devlink/devlink.c | 43 +++
1 file changed, 43 insertions(+)
diff --git a/devlink/devlink.c b/devlink
From: Jiri Pirko
Listen to status notifications coming from kernel during flashing and
put them on stdout to inform user about the status.
Signed-off-by: Jiri Pirko
---
devlink/devlink.c | 209 +-
devlink/mnlg.c| 5 ++
devlink/mnlg.h| 1
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
include/uapi/linux/devlink.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 3b6a9e6be3ac..6544824a0b97 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux
Thu, May 23, 2019 at 05:19:46PM CEST, [email protected] wrote:
>On 5/23/19 3:45 AM, Jiri Pirko wrote:
>> @@ -57,11 +58,13 @@ static int mlxfw_fsm_state_wait(struct mlxfw_dev
>> *mlxfw_dev, u32 fwhandle,
>> if (fsm_state_err != MLXFW_FSM_STATE_ERR_OK) {
>>
Thu, May 23, 2019 at 07:57:03PM CEST, [email protected] wrote:
>On Thu, 23 May 2019 11:47:10 +0200, Jiri Pirko wrote:
>> From: Jiri Pirko
>>
>> Listen to status notifications coming from kernel during flashing and
>> put them on stdout to inform user abou
Thu, May 23, 2019 at 08:37:28PM CEST, [email protected] wrote:
>On Thu, 2019-05-23 at 11:45 +0200, Jiri Pirko wrote:
>> From: Jiri Pirko
>>
>> When user is flashing device using devlink, he currenly does not see
>> any
>> information about what is going on,
Thu, May 23, 2019 at 07:47:54PM CEST, [email protected] wrote:
>On Thu, 23 May 2019 11:45:10 +0200, Jiri Pirko wrote:
>> From: Jiri Pirko
>>
>> Signed-off-by: Jiri Pirko
>> ---
>> drivers/net/netdevsim/dev.c | 35 +++
Fri, May 24, 2019 at 05:54:46PM CEST, [email protected] wrote:
>On Fri, 24 May 2019 10:11:10 +0200, Jiri Pirko wrote:
>> Thu, May 23, 2019 at 05:19:46PM CEST, [email protected] wrote:
>> >On 5/23/19 3:45 AM, Jiri Pirko wrote:
>> >> @@ -57,11 +58,13 @@ s
Sat, May 25, 2019 at 02:08:52AM CEST, [email protected] wrote:
>On Sat, 25 May 2019 00:26:35 +0200, Jiri Pirko wrote:
>> Fri, May 24, 2019 at 05:54:46PM CEST, [email protected] wrote:
>> >On Fri, 24 May 2019 10:11:10 +0200, Jiri Pirko wrote:
>> >&
Mon, May 27, 2019 at 08:14:32PM CEST, [email protected] wrote:
>
>
>On 5/23/2019 2:45 AM, Jiri Pirko wrote:
>> From: Jiri Pirko
>>
>> When user is flashing device using devlink, he currenly does not see any
>> information about what is going on, percentages, e
Mon, May 27, 2019 at 05:31:10AM CEST, [email protected] wrote:
>Like bond, add ethtool get_link_ksettings to show the total speed.
>
>Signed-off-by: Hangbin Liu
>---
> drivers/net/team/team.c | 25 +
> 1 file changed, 25 insertions(+)
>
>diff --git a/drivers/net/team/team
Tue, May 28, 2019 at 12:02:11PM CEST, [email protected] wrote:
>On Tue, May 28, 2019 at 11:08:23AM +0200, Jiri Pirko wrote:
>> >+static int team_ethtool_get_link_ksettings(struct net_device *dev,
>> >+ struct ethtoo
Thu, May 23, 2019 at 08:37:28PM CEST, [email protected] wrote:
>On Thu, 2019-05-23 at 11:45 +0200, Jiri Pirko wrote:
>> From: Jiri Pirko
>>
>> When user is flashing device using devlink, he currenly does not see
>> any
>> information about what is going on,
From: Jiri Pirko
Introduce a function to be called from drivers during flash. It sends
notification to userspace about flash update progress.
Signed-off-by: Jiri Pirko
---
include/net/devlink.h| 8 +++
include/uapi/linux/devlink.h | 5 ++
net/core/devlink.c | 102
From: Jiri Pirko
Benefit from the devlink flash update implementation and ethtool
fallback to it and move firmware flash implementation there.
Signed-off-by: Jiri Pirko
---
drivers/net/ethernet/mellanox/mlxsw/core.c| 15 ++
drivers/net/ethernet/mellanox/mlxsw/core.h| 3
From: Jiri Pirko
Add new op status_notify which is called to update the user about
flashing status.
Signed-off-by: Jiri Pirko
---
drivers/net/ethernet/mellanox/mlxfw/mlxfw.h | 4
.../net/ethernet/mellanox/mlxfw/mlxfw_fsm.c | 24 +++
2 files changed, 28 insertions
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
v1->v2:
- added debugfs toggle to enable/disable flash status notifications
---
drivers/net/netdevsim/dev.c | 44 +++
drivers/net/netdevsim/netdevsim.h | 1 +
2 files changed, 45 insertions(+)
diff --gi
From: Jiri Pirko
Currently the error messages are printed to dmesg. Propagate them also
to directly to user doing the flashing through extack.
Signed-off-by: Jiri Pirko
---
v1->v2:
- dropped "is which" from errmsg.
---
drivers/net/ethernet/mellanox/mlx5/core/fw.c | 6 ++--
...
From: Jiri Pirko
Benefit from the devlink flash update implementation and ethtool
fallback to it and move firmware flash implementation there.
Signed-off-by: Jiri Pirko
---
drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 --
.../ethernet/mellanox/mlx5/core/en_ethtool.c | 35
From: Jiri Pirko
When user is flashing device using devlink, he currenly does not see any
information about what is going on, percentages, etc.
Drivers, for example mlxsw and mlx5, have notion about the progress
and what is happening. This patchset exposes this progress
information to userspace
From: Jiri Pirko
Implement mlxfw status_notify op by passing notification down to
devlink. Also notify about flash update begin and end.
Signed-off-by: Jiri Pirko
---
drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 18 +-
1 file changed, 17 insertions(+), 1 deletion(-)
diff
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
include/uapi/linux/devlink.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 3b6a9e6be3ac..6544824a0b97 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux
From: Jiri Pirko
Listen to status notifications coming from kernel during flashing and
put them on stdout to inform user about the status.
Signed-off-by: Jiri Pirko
---
v1->v2:
- fixed endless loop bug in case of no notifications
---
devlink/devlink.c |
From: Jiri Pirko
Kernel sends notifications about flash update status, so implement these
messages for monitoring.
Signed-off-by: Jiri Pirko
---
devlink/devlink.c | 43 +++
1 file changed, 43 insertions(+)
diff --git a/devlink/devlink.c b/devlink
Tue, May 28, 2019 at 10:01:15PM CEST, [email protected] wrote:
>On Tue, 28 May 2019 13:48:46 +0200, Jiri Pirko wrote:
>> From: Jiri Pirko
>>
>> Signed-off-by: Jiri Pirko
>> ---
>> v1->v2:
>> - added debugfs toggle to enable/disable flash stat
Wed, May 29, 2019 at 06:47:54PM CEST, [email protected] wrote:
>On Wed, 29 May 2019 10:00:16 +0200, Jiri Pirko wrote:
>> Tue, May 28, 2019 at 10:01:15PM CEST, [email protected] wrote:
>> >On Tue, 28 May 2019 13:48:46 +0200, Jiri Pirko wrote:
>
sysinfo {
> ^~~
>
>Rely on the kernel header alone to avoid kernel and userspace headers
>collision of definitions.
>
>Cc: Aya Levin
>Cc: Moshe Shemesh
>Signed-off-by: Baruch Siach
Acked-by: Jiri Pirko
From: Jiri Pirko
When user is flashing device using devlink, he currenly does not see any
information about what is going on, percentages, etc.
Drivers, for example mlxsw and mlx5, have notion about the progress
and what is happening. This patchset exposes this progress
information to userspace
From: Jiri Pirko
Benefit from the devlink flash update implementation and ethtool
fallback to it and move firmware flash implementation there.
Signed-off-by: Jiri Pirko
Reviewed-by: Ido Schimmel
---
drivers/net/ethernet/mellanox/mlxsw/core.c| 15 ++
drivers/net/ethernet/mellanox
From: Jiri Pirko
Introduce a function to be called from drivers during flash. It sends
notification to userspace about flash update progress.
Signed-off-by: Jiri Pirko
Reviewed-by: Jakub Kicinski
Reviewed-by: Ido Schimmel
---
include/net/devlink.h| 8 +++
include/uapi/linux
From: Jiri Pirko
Currently the error messages are printed to dmesg. Propagate them also
to directly to user doing the flashing through extack.
Signed-off-by: Jiri Pirko
Reviewed-by: Ido Schimmel
---
v1->v2:
- dropped "is which" from errmsg.
---
drivers/net/ethernet/mellanox/m
From: Jiri Pirko
Add new op status_notify which is called to update the user about
flashing status.
Signed-off-by: Jiri Pirko
Reviewed-by: Ido Schimmel
---
drivers/net/ethernet/mellanox/mlxfw/mlxfw.h | 4
.../net/ethernet/mellanox/mlxfw/mlxfw_fsm.c | 24 +++
2 files
From: Jiri Pirko
Implement mlxfw status_notify op by passing notification down to
devlink. Also notify about flash update begin and end.
Signed-off-by: Jiri Pirko
Reviewed-by: Ido Schimmel
---
drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 18 +-
1 file changed, 17
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
v1->v2:
- added debugfs toggle to enable/disable flash status notifications
---
drivers/net/netdevsim/dev.c | 44 +++
drivers/net/netdevsim/netdevsim.h | 1 +
2 files changed, 45 insertions(+)
diff --gi
From: Jiri Pirko
Benefit from the devlink flash update implementation and ethtool
fallback to it and move firmware flash implementation there.
Signed-off-by: Jiri Pirko
---
drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 --
.../ethernet/mellanox/mlx5/core/en_ethtool.c | 35
From: Jiri Pirko
Utilizes the devlink flash code.
Suggested-by: Jakub Kicinski
Signed-off-by: Jiri Pirko
---
v2->v3:
- new patch
---
.../drivers/net/netdevsim/devlink.sh | 53 +++
1 file changed, 53 insertions(+)
create mode 100755 tools/testing/selftests/driv
From: Jiri Pirko
Kernel sends notifications about flash update status, so implement these
messages for monitoring.
Signed-off-by: Jiri Pirko
---
devlink/devlink.c | 43 +++
1 file changed, 43 insertions(+)
diff --git a/devlink/devlink.c b/devlink
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
include/uapi/linux/devlink.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 3b6a9e6be3ac..6544824a0b97 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux
From: Jiri Pirko
Listen to status notifications coming from kernel during flashing and
put them on stdout to inform user about the status.
Signed-off-by: Jiri Pirko
---
v2->v3:
- added example in man
v1->v2:
- fixed endless loop bug in case of no notifications
---
devlink/devlink.c
This and next 2 patches are aimed at iproute2/net-next. Sorry for
messing up the subject prefix.
Tue, Jun 04, 2019 at 04:28:19PM CEST, [email protected] wrote:
>On Mon, Jun 03, 2019 at 03:12:42PM +0300, Ido Schimmel wrote:
>
>> +static int
>> +mlxsw_sp1_ptp_update_phc_settime(struct mlxsw_sp_ptp_clock *clock, u64 nsec)
>
>Six words ^^^
It is aligned with the rest of mlxsw code.
et/openvswitch/datapath.c:24
>
>This definition takes precedence to OVS since it is placed in the
>networking core, so rename flow_stats in OVS to sw_flow_stats since
>this structure is contained in the sw_flow object.
>
>Signed-off-by: Pablo Neira Ayuso
Acked-by: Jiri Pirko
;net: flow_offload: add list handling functions")
>Signed-off-by: Pablo Neira Ayuso
Acked-by: Jiri Pirko
From: Jiri Pirko
Extend exiting getlink info message with list of alternative names.
Signed-off-by: Jiri Pirko
---
include/uapi/linux/if_link.h | 2 ++
net/core/rtnetlink.c | 41
2 files changed, 43 insertions(+)
diff --git a/include/uapi/linux
From: Jiri Pirko
Add two commands to add and delete alternative ifnames for net device.
Each net device can have multiple alternative names.
Signed-off-by: Jiri Pirko
---
include/linux/netdevice.h | 4 ++
include/uapi/linux/if.h| 1 +
include/uapi/linux/if_link.h | 1
From: Jiri Pirko
Extend the basic rtnetlink commands to use alternative interface names
as a handle instead of ifindex and ifname.
Signed-off-by: Jiri Pirko
---
net/core/rtnetlink.c | 36 +++-
1 file changed, 23 insertions(+), 13 deletions(-)
diff --git a/net
From: Jiri Pirko
__rtnl_newlink() code flow is a bit different around tb[IFLA_IFNAME]
processing comparing to the other places. Change that to be unified with
the rest.
Signed-off-by: Jiri Pirko
---
net/core/rtnetlink.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff
From: Jiri Pirko
In the past, there was repeatedly discussed the IFNAMSIZ (16) limit for
netdevice name length. Now when we have PF and VF representors
with port names like "pfXvfY", it became quite common to hit this limit:
0123456789012345
enp131s0f1npf0vf6
enp131s0f1npf0vf22
U
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
include/linux/netdevice.h | 10 +++-
net/core/dev.c| 96 +++
2 files changed, 86 insertions(+), 20 deletions(-)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 88292953aa6f
From: Jiri Pirko
Name hashlist is going to be used for more than just dev->name, so use
rather index hashlist for iteration over net_device instances.
Signed-off-by: Jiri Pirko
---
net/core/net-procfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/core/
From: Jiri Pirko
Introduce helper function rtnl_get_dev() that gets net_device structure
instance pointer according to passed ifname or ifname attribute.
Signed-off-by: Jiri Pirko
---
net/core/rtnetlink.c | 57 ++--
1 file changed, 29 insertions(+), 28
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
include/uapi/linux/if_link.h | 3 ++
include/uapi/linux/rtnetlink.h | 7 +++
include/utils.h| 1 +
ip/ipaddress.c | 14 ++
ip/iplink.c| 81 ++
lib/utils.c
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
ip/iplink.c | 5 +++--
lib/ll_map.c | 41 -
2 files changed, 43 insertions(+), 3 deletions(-)
diff --git a/ip/iplink.c b/ip/iplink.c
index 45f975f1dce9..ad1e67761dd8 100644
--- a/ip/iplink.c
+++ b/ip
Fri, Jul 19, 2019 at 06:31:35PM CEST, [email protected] wrote:
>On Fri, 19 Jul 2019 13:00:22 +0200
>Jiri Pirko wrote:
>
>> From: Jiri Pirko
>>
>> In the past, there was repeatedly discussed the IFNAMSIZ (16) limit for
>> netdevice name length. Now wh
Fri, Jul 19, 2019 at 06:29:36PM CEST, [email protected] wrote:
>On Fri, 19 Jul 2019 13:00:24 +0200
>Jiri Pirko wrote:
>
>> From: Jiri Pirko
>>
>> Signed-off-by: Jiri Pirko
>> ---
>> include/linux/netdevice.h | 10
Fri, Jul 19, 2019 at 10:26:49PM CEST, [email protected] wrote:
>On Fri, 19 Jul 2019 21:17:40 +0200
>Jiri Pirko wrote:
>
>> Fri, Jul 19, 2019 at 06:29:36PM CEST, [email protected] wrote:
>> >On Fri, 19 Jul 2019 13:00:24 +0200
>> >Jiri Pirko wro
Sat, Jul 20, 2019 at 05:59:14AM CEST, [email protected] wrote:
>On Fri, 19 Jul 2019 13:00:26 +0200, Jiri Pirko wrote:
>> diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
>> index 7a2010b16e10..f11a2367037d 100644
>> --- a/net/core/rtnetlink.c
>>
Sat, Jul 20, 2019 at 05:58:49AM CEST, [email protected] wrote:
>On Fri, 19 Jul 2019 13:00:25 +0200, Jiri Pirko wrote:
>> +int netdev_name_node_alt_destroy(struct net_device *dev, char *name)
>> +{
>> +struct netdev_name_node *name_node;
>> +st
Sat, Jul 20, 2019 at 05:59:27AM CEST, [email protected] wrote:
>On Fri, 19 Jul 2019 13:00:29 +0200, Jiri Pirko wrote:
>> diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
>> index 1fa30d514e3f..68ad12a7fc4d 100644
>> --- a/net/core/rtnetlink.c
>>
bit
>drm_vram_helpe
>r ttm drm_kms_helper drm mpt3sas raid_class scsi_transport_sas
>[ 213.112326] CR2: 0010
>[ 213.117429] ---[ end trace adb58eb0a4ee6283 ]---
>
>Verify that q pointer is not NULL before setting the 'flags' field.
>
>Fixes: 3f05e6886a59 ("net_sched: unset TCQ_F_CAN_BYPASS when adding filters")
>Signed-off-by: Vlad Buslov
Acked-by: Jiri Pirko
Thanks!
From: Jiri Pirko
One cannot depend on *argv being null in case of no arg is left on the
command line. For example in batch mode, this is not always true. Check
argc instead to prevent crash.
Reported-by: Alex Kushnarov
Fixes: fd8b3d2c1b9b ("actions: Add support for user cookies")
Sig
From: Jiri Pirko
When getcmdline fails, there is no valid string in line_next.
So change the flow and don't process it. Alongside with that,
free the previous line buffer and prevent memory leak.
Fixes: 485d0c6001c4 ("tc: Add batchsize feature for filter and actions")
Signed-off
Tue, Jul 23, 2019 at 07:54:01PM CEST, [email protected] wrote:
>On Tue, 23 Jul 2019 13:25:37 +0200
>Jiri Pirko wrote:
>
>> From: Jiri Pirko
>>
>> One cannot depend on *argv being null in case of no arg is left on the
>> command line. For example in ba
Mon, Jul 22, 2019 at 08:31:30PM CEST, [email protected] wrote:
>From: Ido Schimmel
>
>The timer and work item are currently initialized once during module
>init, but subsequent patches will need to associate different functions
>with the work item, based on the configured alert mode.
>
>Allow subs
Mon, Jul 22, 2019 at 08:31:32PM CEST, [email protected] wrote:
>From: Ido Schimmel
>
>So far drop monitor supported only one alert mode in which a summary of
>locations in which packets were recently dropped was sent to user space.
>
>This alert mode is sufficient in order to understand that packe
Tue, Jul 23, 2019 at 05:14:23PM CEST, [email protected] wrote:
>On Tue, Jul 23, 2019 at 02:17:49PM +0200, Toke Høiland-Jørgensen wrote:
>> Ido Schimmel writes:
>>
>> > On Mon, Jul 22, 2019 at 09:43:15PM +0200, Toke Høiland-Jørgensen wrote:
>> >> Is there a mechanism for the user to filter the pac
Mon, Jul 22, 2019 at 08:31:22PM CEST, [email protected] wrote:
>From: Ido Schimmel
>
>So far drop monitor supported only one mode of operation in which a
>summary of recent packet drops is periodically sent to user space as a
>netlink event. The event only includes the drop location (program
>coun
Fri, Jul 26, 2019 at 09:47:07PM CEST, [email protected] wrote:
>On Tue, 23 Jul 2019 13:25:37 +0200
>Jiri Pirko wrote:
>
>> From: Jiri Pirko
>>
>> One cannot depend on *argv being null in case of no arg is left on the
>> command line. For example in ba
From: Jiri Pirko
All devlink instances are created in init_net and stay there for a
lifetime. Allow user to be able to move devlink instances into
namespaces.
Signed-off-by: Jiri Pirko
---
include/uapi/linux/devlink.h | 4 ++
net/core/devlink.c | 112
From: Jiri Pirko
When user does create new netdevsim instance using sysfs bus file,
create the devlink instance and related netdev instance in the namespace
of the caller.
Signed-off-by: Jiri Pirko
---
drivers/net/netdevsim/bus.c | 1 +
drivers/net/netdevsim/dev.c | 17
From: Jiri Pirko
Allow drivers to set/get net struct for devlink instance. Set is only
allowed for newly allocated devlink instance.
Signed-off-by: Jiri Pirko
---
include/net/devlink.h | 3 +++
net/core/devlink.c| 18 ++
2 files changed, 17 insertions(+), 4 deletions
From: Jiri Pirko
Devlink from the beginning counts with network namespaces, but the
instances has been fixed to init_net. The first patch allows user
to move existing devlink instances into namespaces:
$ devlink dev
netdevsim/netdevsim1
$ ip netns add ns1
$ devlink dev set netdevsim/netdevsim1
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
devlink/devlink.c| 54 +++-
include/uapi/linux/devlink.h | 4 +++
man/man8/devlink-dev.8 | 12
3 files changed, 69 insertions(+), 1 deletion(-)
diff --git a/devlink/devlink.c b/devlink
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
devlink/devlink.c | 12 ++--
man/man8/devlink.8 | 4
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/devlink/devlink.c b/devlink/devlink.c
index d8197ea3a478..9242cc05ad0c 100644
--- a/devlink/devlink.c
+++ b/devlink
Sat, Jul 27, 2019 at 12:12:48PM CEST, [email protected] wrote:
>Jiri Pirko writes:
>
>> From: Jiri Pirko
>>
>> Signed-off-by: Jiri Pirko
>> ---
>> devlink/devlink.c | 12 ++--
>> man/man8/devlink.8 | 4
>> 2 files changed, 14
From: Jiri Pirko
Commit aca51397d014 ("netns: Fix arbitrary net_device-s corruptions
on net_ns stop.") introduced a possibility to hit a BUG in case device
is returning back to init_net and two following conditions are met:
1) dev->ifindex value is used in a name of another "d
Sun, Jul 28, 2019 at 08:52:47AM CEST, [email protected] wrote:
>From: wenxu
>
>move tc indirect block to flow_offload and rename
>it to flow indirect block.The nf_tables can use the
>indr block architecture.
>
>Signed-off-by: wenxu
>---
>v3: subsys_initcall for init_flow_indr_rhashtable
>v4: no cha
Sun, Jul 28, 2019 at 08:52:47AM CEST, [email protected] wrote:
>From: wenxu
>
>move tc indirect block to flow_offload and rename
A sentence should start with capital letter.
>it to flow indirect block.The nf_tables can use the
There should be a space between "." and first letter of the next
sens
Mon, Jul 29, 2019 at 02:47:07PM CEST, [email protected] wrote:
>
>在 2019/7/29 19:13, Jiri Pirko 写道:
>> Sun, Jul 28, 2019 at 08:52:47AM CEST, [email protected] wrote:
>>> From: wenxu
>>>
>>> move tc indirect block to flow_offload and rename
>>> it
Mon, Jul 29, 2019 at 07:52:16PM CEST, [email protected] wrote:
>From: Jiri Pirko
>Date: Sat, 27 Jul 2019 11:44:57 +0200
>
>> +if ((netns_pid_attr && (netns_fd_attr || netns_id_attr)) ||
>> +(netns_fd_attr && (netns_pid_attr || netns_id
Mon, Jul 29, 2019 at 08:59:06PM CEST, [email protected] wrote:
>On Sat, 27 Jul 2019 11:44:59 +0200, Jiri Pirko wrote:
>> From: Jiri Pirko
>>
>> When user does create new netdevsim instance using sysfs bus file,
>> create the devlink instance and rel
Mon, Jul 29, 2019 at 10:21:11PM CEST, [email protected] wrote:
>On 7/27/19 4:21 AM, Jiri Pirko wrote:
>>>> diff --git a/devlink/devlink.c b/devlink/devlink.c
>>>> index d8197ea3a478..9242cc05ad0c 100644
>>>> --- a/devlink/devlink.c
>>>> +++ b/devl
Mon, Jul 29, 2019 at 10:17:25PM CEST, [email protected] wrote:
>On 7/27/19 3:44 AM, Jiri Pirko wrote:
>> From: Jiri Pirko
>>
>> Devlink from the beginning counts with network namespaces, but the
>> instances has been fixed to init_net. The first patch allows user
From: Jiri Pirko
Devlink from the beginning counts with network namespaces, but the
instances has been fixed to init_net. The first patch allows user
to move existing devlink instances into namespaces:
$ devlink dev
netdevsim/netdevsim1
$ ip netns add ns1
$ devlink dev set netdevsim/netdevsim1
From: Jiri Pirko
All devlink instances are created in init_net and stay there for a
lifetime. Allow user to be able to move devlink instances into
namespaces.
Signed-off-by: Jiri Pirko
---
v1->v2:
- change the check for multiple attributes
- add warnon in case there is no attribute pas
From: Jiri Pirko
Allow drivers to set/get net struct for devlink instance. Set is only
allowed for newly allocated devlink instance.
Signed-off-by: Jiri Pirko
---
include/net/devlink.h | 3 +++
net/core/devlink.c| 18 ++
2 files changed, 17 insertions(+), 4 deletions
From: Jiri Pirko
When user does create new netdevsim instance using sysfs bus file,
create the devlink instance and related netdev instance in the namespace
of the caller.
Signed-off-by: Jiri Pirko
---
v1->v2:
- remove net_namespace.h include and forward decralared net struct
- add comment
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
devlink/devlink.c| 54 +++-
include/uapi/linux/devlink.h | 4 +++
man/man8/devlink-dev.8 | 12
3 files changed, 69 insertions(+), 1 deletion(-)
diff --git a/devlink/devlink.c b/devlink
From: Jiri Pirko
Signed-off-by: Jiri Pirko
---
devlink/devlink.c | 12 ++--
man/man8/devlink.8 | 4
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/devlink/devlink.c b/devlink/devlink.c
index d8197ea3a478..9242cc05ad0c 100644
--- a/devlink/devlink.c
+++ b/devlink
Tue, Jul 30, 2019 at 07:14:11PM CEST, [email protected] wrote:
>On Tue, 30 Jul 2019 08:06:55 +0200, Jiri Pirko wrote:
>> >> diff --git a/drivers/net/netdevsim/netdevsim.h
>> >> b/drivers/net/netdevsim/netdevsim.h
>> >> index 79c05af2a7c0..cdf5
1 - 100 of 5981 matches
Mail list logo