Since we now have support for software CRC32c offload, turn it on
for macvlan and macvtap devices so that guests can take advantage
of offload SCTP checksums to the host or host hardware.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 5 +++--
drivers/net/tap.c | 8
kernel.
Signed-off-by: Vladislav Yasevich
---
include/net/sctp/sctp.h | 5 -
net/Kconfig | 1 +
net/sctp/Kconfig| 1 -
net/sctp/Makefile | 3 ++-
net/sctp/offload.c | 4 +++-
net/sctp/protocol.c | 3 ---
6 files changed, 6 insertions(+), 11 deletions(-)
diff
it.
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c| 14 +-
include/linux/virtio_net.h | 6 ++
include/uapi/linux/virtio_net.h | 5 +
3 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_ne
Adds a new tun offload flag to allow for SCTP checksum offload.
The flag has to be set by the user and defaults to "no offload".
Add SCTP checksum support to the supported tun features.
Signed-off-by: Vladislav Yasevich
---
drivers/net/tun.c | 7 ++-
include/uapi/linu
moved to high bits
- distinguish between GUEST and HOST features
- Fixed offload control command to control sctp checksum offload
- added ipvlan support
Vladislav Yasevich (6):
virtio: Add support for SCTP checksum offloading
sctp: Handle sctp packets with CHECKSUM_PARTIAL
sctp:
nothing. So an SCTP packet
with CHECKSUM_PARTIAL will have checksum set to 0. Let SCTP
treat this as a valid checksum if CHECKSUM_PARTIAL is set.
Signed-off-by: Vladislav Yasevich
---
net/sctp/input.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/net/sctp/inp
Since ipvlan is a software device, we can turn on SCTP checksum
offload and let the checksum be computed at the lower layer.
Signed-off-by: Vladislav Yasevich
---
drivers/net/ipvlan/ipvlan_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ipvlan
will know to perform an alternate checksum
calculation, which right now is only CRC32c.
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c| 11 ---
include/linux/virtio_net.h | 6 ++
include/uapi/linux/virtio_net.h | 2 ++
3 files changed, 16 insertions(+), 3
Since we now have support for software CRC32c offload, turn it on
for macvlan and macvtap devices so that guests can take advantage
of offload SCTP checksums to the host or host hardware.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 5 +++--
drivers/net/tap.c
Adds a new tun offload flag to allow for SCTP checksum offload.
The flag has to be set by the user and defaults to "no offload".
Signed-off-by: Vladislav Yasevich
---
drivers/net/tun.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
ind
nothing. So an SCTP packet
with CHECKSUM_PARTIAL will have checksum set to 0. Let SCTP
treat this as a valid checksum if CHECKSUM_PARTIAL is set.
Signed-off-by: Vladislav Yasevich
---
net/sctp/input.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/net/sctp/inp
support to virtio. To add true GSO, would require a lot of
re-work inside of SCTP and would require extensions to the virtio
net header to carry extra sctp data.
Vladislav Yasevich (5):
virtio: Add support for SCTP checksum offloading
sctp: Handle sctp packets with CHECKSUM_PARTIAL
sctp:
We need to take the sctp offload out of the sctp module
and add it to the base kernel to support guests that can
support it. This is similar to how IPv6 offloads are done
and works around kernels that exclude sctp protocol support.
Signed-off-by: Vladislav Yasevich
---
include/net/sctp/sctp.h
Convert the port passthru boolean into flags with accesor functions.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 37 -
1 file changed, 24 insertions(+), 13 deletions(-)
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index
done directly to the lower device mac address will be kept.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 47 ---
1 file changed, 44 insertions(+), 3 deletions(-)
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 90d08d6..ad
n and then removing it,
the mac address of the physical device remains changed.
This patch series attempts to resolve these issues.
V2: Address a small issue in p4 where we save the address from the lowerdev
(from girish.moodalb...@oracle.com)
Thanks
-vlad
Vladislav Yasevich (4):
macvl
The user currently gets an EBUSY error when attempting to set
the mac address on a macvlan device to the same value.
This should really be a no-op as nothing changes. Catch
the condition and return early.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 4
1 file changed, 4
ainst
the lower device in case of passthru macvlan device, since
the 2 addresses are _supposed_ to be the same.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index d
ainst
the lower device in case of passthru macvlan device, since
the 2 addresses are _supposed_ to be the same.
Fixes: e289fd281 (macvlan: fix the problem when mac address changes for
passthru mode)
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 3 ++-
1 file changed, 2 insertions
done directly to the lower device mac address will be kept.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 47 ---
1 file changed, 44 insertions(+), 3 deletions(-)
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index eb956ff..c5
Convert the port passthru boolean into flags with access functions.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 37 -
1 file changed, 24 insertions(+), 13 deletions(-)
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index a735a64
The user currently gets an EBUSY error when attempting to set
the mac address on a macvlan device to the same value.
This should really be a no-op as nothing changes. Catch
the condition and return early.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 4
1 file changed, 4
n and then removing it,
the mac address of the physical device remains changed.
This patch series attempts to resolve these issues.
Thanks
-vlad
Vladislav Yasevich (4):
macvlan: Do not return error when setting the same mac address
macvlan: Fix passthru macvlan mac address inheritance
Add IFLA_EVENT output so that event types can be viewed with
'monitor' command. This gives a little more information for why
a given message was received.
Signed-off-by: Vladislav Yasevich
---
v7: change the names to make it more generic then just netdev events.
Updated init
Small clean-up to rtmsg_ifinfo() to use the rtnl_get_event()
interface instead of using 'internal' values directly.
Signed-off-by: Vladislav Yasevich
---
net/core/rtnetlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/rtnetlink.c b/net/core/rtnetli
just happend for these events.
This patch adds a new extension to RTM_NEWLINK message called IFLA_EVENT
that would have an encoding of event that triggered this
message. This would allow the the message consumer to easily determine
if it needs to perform certain actions.
Signed-off-by: Vladislav Yas
Add IFLA_EVENT handling so that event types can be viewed with
'monitor' command. This gives a little more information for why
a given message was receivied.
Signed-off-by: Vladislav Yasevich
---
include/linux/if_link.h | 11 +++
ip/ipaddress.c | 21 ++
s a netdev event and uses that function in the syfs and ioctl
cases.
This was discovered while auditing all the different envents and
continues the effort of cleaning up duplicated netlink messages.
CC: David Ahern
CC: Jiri Pirko
Signed-off-by: Vladislav Yasevich
---
drivers/net/bonding/b
V2: Added missed events (from David Ahern)
Vladislav Yasevich (2):
rtnl: Add support for netdev event to link messages
bonding: Prevent duplicate userspace notification
drivers/net/bonding/bond_main.c| 3 +-
drivers/net/bonding/bond_options.c | 27 ++--
include/linux/r
on changes.
V3: Rebased. Cleaned-up duplicate event.
V2: Added missed events (from David Ahern)
Vladislav Yasevich (2):
rtnl: Add support for netdev event to link messages
bonding: Prevent duplicate userspace notification
drivers/net/bonding/bond_main.c| 3 +-
drivers/net/bonding/bond
s a netdev event and uses that function in the syfs and ioctl
cases.
This was discovered while auditing all the different envents and
continues the effort of cleaning up duplicated netlink messages.
Signed-off-by: Vladislav Yasevich
---
drivers/net/bonding/bond_main.c| 3 ++-
drivers/n
Add IFLA_EVENT handling so that event types can be viewed with
'monitor' command. This gives a little more information for why
a given message was receivied.
Signed-off-by: Vladislav Yasevich
---
include/linux/if_link.h | 11 +++
ip/ipaddress.c | 21 ++
just happend for these events.
This patch adds a new extension to RTM_NEWLINK message called IFLA_EVENT
that would have an encoding of event that triggered this
message. This would allow the the message consumer to easily determine
if it needs to perform certain actions.
Signed-off-by: Vladislav Yas
traffic.
CC: Sathya Perla
CC: Ajit Khaparde
CC: Sriharsha Basavapatna
CC: Somnath Kotur
Signed-off-by: Vladislav Yasevich
---
drivers/net/ethernet/emulex/benet/be_main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c
b
ael S. Tsirkin
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 665627c..ead7a58 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -2020,6 +2020,7 @@ s
ecksum
offloading. If any drivers are found to be broken, they would need
be fixed individually.
Vladislav Yasevich (3):
vlan: Fix tcp checksum offloads in Q-in-Q vlans
be2net: Fix offload features for Q-in-Q packets
virtio-net: enable TSO/checksum offloads for Q-in-Q vlans
drivers/net/e
packets with
arbitrarily long headers can be checksummed.
This patch disables IP|IPV6 checksums on the packet for multi-tagged
packets.
CC: Toshiaki Makita
CC: Michal Kubecek
Signed-off-by: Vladislav Yasevich
---
include/linux/if_vlan.h | 18 ++
1 file changed, 10 insertions
ael S. Tsirkin
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 665627c..ead7a58 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -2020,6 +2020,7 @@ s
traffic.
CC: Sathya Perla
CC: Ajit Khaparde
CC: Somnath Kotur
Signed-off-by: Vladislav Yasevich
---
drivers/net/ethernet/emulex/benet/be_main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c
b/drivers/net/ethernet/emulex/benet
drivers are found to be broken, they would need
be fixed individually.
Vladislav Yasevich (3):
vlan: Fix tcp checksum offloads in Q-in-Q vlans
be2net: Fix offload features for Q-in-Q packets
virtio-net: enable TSO/checksum offloads for Q-in-Q vlans
drivers/net/ethernet/emulex/benet/be
ets with
arbitrarily long headers can be checksummed.
This patch disables IP|IPV6 checksums on the packet for multi-tagged
packets.
CC: Toshiaki Makita
CC: Michal Kubecek
Signed-off-by: Vladislav Yasevich
---
include/linux/if_vlan.h | 18 ++
1 file changed, 10 insertions(+), 8 d
CC: Jason Wang
CC: virtualizat...@lists.linux-foundation.org
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 8324a5e..341fb96 100644
--- a/drivers/net/virtio_net.c
++
ng feature
by default when sending Q-in-Q traffic. Devices that are proven to
work can provided a corrected ndo_features_check implemetation.
Fixes: 8cb65d000 ("net: Move check for multiple vlans to drivers")
CC: Toshiaki Makita
Signed-off-by: Vladislav Yasevich
---
include/linux/if_
traffic.
CC: Sathya Perla
CC: Ajit Khaparde
CC: Somnath Kotur
Signed-off-by: Vladislav Yasevich
---
drivers/net/ethernet/emulex/benet/be_main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c
b/drivers/net/ethernet/emulex/benet
. It is up to individual
drivers to enable it properly through ndo_features_check if they
have some support for Q-in-Q vlans.
Vladislav Yasevich (3):
vlan: Fix Q-in-Q vlan support.
be2net: Fix offload features for Q-in-Q packets
virtio-net: enable TSO/checksum offloads for Q-in-Q vlans
dr
overlow the macvtap queue.
This patch adds the always on offloads to vlan_features. This
makes sure that any vlan tagged traffic between 2 guest will not
be segmented needlessly.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions
o clean-up duplicate messages on bonding option changes.
V3: Rebased. Cleaned-up duplicate event.
V2: Added missed events (from David Ahern)
Vladislav Yasevich (2):
rtnl: Add support for netdev event to link messages
bonding: Prevent duplicate userspace notification
drivers/net/bonding
s a netdev event and uses that function in the syfs and ioctl
cases.
This was discovered while auditing all the different envents and
continues the effort of cleaning up duplicated netlink messages.
CC: David Ahern
CC: Jiri Pirko
Signed-off-by: Vladislav Yasevich
---
drivers/net/bonding/b
just happend for these events.
This patch adds a new extension to RTM_NEWLINK message called IFLA_EVENT
that would have an encoding of event that triggered this
message. This would allow the the message consumer to easily determine
if it needs to perform certain actions.
Signed-off-by: Vladislav Yas
n the vlan device while being disabled on the HW.
However, the GSO code will correctly process the packets. This
actually results in slightly better raw throughput.
Signed-off-by: Vladislav Yasevich
---
V2: posted the right patch.
net/8021q/vlan_dev.c | 13 ++---
1 file changed, 10 inser
n the vlan device while being disabled on the HW.
However, the GSO code will correctly process the packets. This
actually results in slightly better raw throughput.
Signed-off-by: Vladislav Yasevich
---
net/8021q/vlan_dev.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --
just happend for these events.
This patch adds a new extension to RTM_NEWLINK message called IFLA_EVENT
that would have an encoding of event that triggered this
message. This would allow the the message consumer to easily determine
if it needs to perform certain actions.
Signed-off-by: Vladislav Yas
c | 121 +++
4 files changed, 123 insertions(+), 24 deletions(-)
--
2.7.4
Vladislav Yasevich (2):
rtnetlink: Disable notification for NETDEV_NAMECHANGE event
rtnl: Add support for netdev event to link messages
include/linux/rtnetlink.h| 3 ++-
include/uapi/linux
On Fri, Apr 21, 2017 at 1:33 AM, Michal Kubecek wrote:
> On Thu, Apr 20, 2017 at 07:19:55PM -0400, Vlad Yasevich wrote:
>>
>> Having said that, the other alternative is to inherit hw_features from
>> lower devices. BTW, bonding I think has a similar "issue" you are
>> describing since it prefers
The data signaling name change is already provided at
the end of do_setlink(). This event handler just generates
a duplicate announcement. Disable it.
CC: David Ahern
Signed-off-by: Vladislav Yasevich
---
net/core/rtnetlink.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/core
ichal Kubecek
CC: Alexander Duyck
CC: Tom Herbert
Signed-off-by: Vladislav Yasevich
---
V2: Addressed comments from Alex Duyck. I tested this with hacked virtio
device that set IP|IPV6 checksums instead of HW. Configuring a vlan on
top gave the vlan device with 'ip-generic: on' se
cksum offloading
features on the software device.
This patch resolves that by prefering the NETIF_F_HW_CSUM setting
when computing a feature intersect.
Signed-off-by: Vladislav Yasevich
---
include/linux/netdevice.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/
We can replace the structure with a properly aligned size instead.
The current structure attempts to align on a 16 byte boundary, so
preserve it.
Signed-off-by: Vlad Yaseivch
---
drivers/net/virtio_net.c | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a
to predict.
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c| 27 +--
include/linux/virtio_net.h | 20
include/uapi/linux/virtio_net.h | 7 +++
3 files changed, 52 insertions(+), 2 deletions(-)
diff --git a/drivers/net
This is the basic sceleton which will be fleshed out by individiual
extensions.
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c| 21 +
include/linux/virtio_net.h | 12
include/uapi/linux/virtio_net.h | 11 +++
3 files changed
This patch provides the ablility to negotiate UDP tunnel offload features
in the virtio devices as well as the necesary extension to pass additional
information to the host. This work is based on earlier work by Jarno
Rajahalme
---
drivers/net/virtio_net.c| 36 ++-
Consistently use hdr_len stored in virtnet_info
structure instead of direclty using specific sizes.
This will be required as the size of the virtio net
header grows due to future extensions.
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c | 8
1 file changed, 4
enabled HW accelerated vlan features.
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c| 17 -
include/linux/virtio_net.h | 17 +
include/uapi/linux/virtio_net.h | 7 +++
3 files changed, 40 insertions(+), 1 deletion(-)
diff --git a
checksum.
This series only takes care of virtio net. I have addition patches for the
host side (vhost and tap/macvtap as well as qemu), but wanted to get feedback
on the general approach first.
Vladislav Yasevich (6):
virtio-net: Remove the use the padded vnet_header structure
virtio-net: mak
Add IFLA_EVENT handling so that event types can be viewed with
'monitor' command. This gives a little more information for why
a given message was receivied.
Signed-off-by: Vladislav Yasevich
---
include/linux/if_link.h | 21 +
ip/ipaddress.c
if it is interested in a particular event or not.
Signed-off-by: Vladislav Yasevich
---
V2: Added support for 2 missed event types.
include/linux/rtnetlink.h| 3 +-
include/uapi/linux/if_link.h | 21 ++
net/core/dev.c | 2 +-
net/core/rtnetlink.c
hrough 'ip monitor'.
I actually need the ability to trap NETDEV_NOTIFY_PEERS event
(as well as possible NETDEV_RESEND_IGMP) to support hanlding of
macvtap on top of bonding. I hope others will also find this info usefull.
Vladislav Yasevich (2):
rtnetlink: Convert rtnetlink_event to wh
vents would have to be specifically added to the list to
be sent to userspace. This would force new event implementers to
consider whether a given event is usefull to user space or if it's
just a kernel event.
Signed-off-by: Vladislav Yasevich
---
V2: Added missed events (from David Ahern)
hrough 'ip monitor'.
I actually need the ability to trap NETDEV_NOTIFY_PEERS event
(as well as possible NETDEV_RESEND_IGMP) to support hanlding of
macvtap on top of bonding. I hope others will also find this info usefull.
V2: Added missed events (from David Ahern)
Vladislav Yasevich (2):
Add IFLA_EVENT handling so that event types can be viewed with
'moniotr' command. This gives a little more information for why
a given message was recevied.
V2: Adds all events recently proposed. This way all currently supported
events can be viewed.
Signed-off-by: Vladisla
if it is interested in a particular event or not.
Signed-off-by: Vladislav Yasevich
---
include/linux/rtnetlink.h| 3 +-
include/uapi/linux/if_link.h | 19 ++
net/core/dev.c | 2 +-
net/core/rtnetlink.c | 86 +++-
4
hrough 'ip monitor'.
I actually need the ability to trap NETDEV_NOTIFY_PEERS event
(as well as possible NETDEV_RESEND_IGMP) to support hanlding of
macvtap on top of bonding. I hope others will also find this info usefull.
Vladislav Yasevich (2):
rtnetlink: Convert rtnetlink_event to wh
vents would have to be specifically added to the list to
be sent to userspace. This would force new event implementers to
consider whether a given event is usefull to user space or if it's
just a kernel event.
Signed-off-by: Vladislav Yasevich
---
net/core/rtnetl
having a list of events that should send the notification makes the
> intent explicit.
>
> Looking at git commit logs for NETDEV_PRECHANGEMTU, it seems that it was
> added for bonding and teaming to simplify kernel processing; userspace
> does not need to be notified so no intention there.
This patch adds support for NETDEV_RESEND_IGMP event similar
to how it works for IPv4.
Signed-off-by: Vladislav Yasevich
---
include/net/ndisc.h | 2 ++
net/ipv6/af_inet6.c | 8 +++-
net/ipv6/mcast.c| 50 +-
3 files changed, 58
Add MTU_CHANGED and NOTIFY_PEER events that can be viewed with
'moniotr' command. This gives a little more information for why
a given notification was recevied. More events can be be added
later.
Signed-off-by: Vladislav Yasevich
---
include/linux/if_link.h | 7 +++
ip/i
.
Signed-off-by: Vladislav Yasevich
---
include/linux/rtnetlink.h| 3 ++-
include/uapi/linux/if_link.h | 7 ++
net/core/dev.c | 2 +-
net/core/rtnetlink.c | 51
4 files changed, 52 insertions(+), 11 deletions(-)
diff
l and possible other
encapsulations.
This series only takes care of virtio net. I have addition patches for the
host side (vhost and tap/macvtap as well as qemu), but wanted to get feedback
on the general approach first.
Vladislav Yasevich (6):
virtio-net: Remove the use the padded vnet_h
to predict.
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c| 27 +--
include/linux/virtio_net.h | 20
include/uapi/linux/virtio_net.h | 7 +++
3 files changed, 52 insertions(+), 2 deletions(-)
diff --git a/drivers/net
We can replace the structure with a properly aligned size instead.
The current structure attempts to align on a 16 byte boundary, so
preserve it.
Signed-off-by: Vlad Yaseivch
---
drivers/net/virtio_net.c | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a
enabled HW accelerated vlan features.
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c| 17 -
include/linux/virtio_net.h | 17 +
include/uapi/linux/virtio_net.h | 7 +++
3 files changed, 40 insertions(+), 1 deletion(-)
diff --git a
This is the basic sceleton which will be fleshed out by individiual
extensions.
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c| 21 +
include/linux/virtio_net.h | 12
include/uapi/linux/virtio_net.h | 11 +++
3 files changed
This patch provides the ablility to negotiate UDP tunnel offload features
in the virtio devices as well as the necesary extension to pass additional
information to the host. This work is based on earlier work by Jarno
Rajahalme
---
drivers/net/virtio_net.c| 39 +++
Consistently use hdr_len stored in virtnet_info
structure instead of direclty using specific sizes.
This will be required as the size of the virtio net
header grows due to future extensions.
Signed-off-by: Vladislav Yasevich
---
drivers/net/virtio_net.c | 16 +---
1 file changed, 9
When we notify peers of potential changes, it's also good to update
IGMP memberships. For example, during VM migration, updating IGMP
memberships will redirect existing multicast streams to the VM at the
new location.
Signed-off-by: Vladislav Yasevich
---
net/core/dev.c | 1 +
1 file ch
IPv6 will mark data that is smaller that mtu - headersize as
CHECKSUM_PARTIAL, but if the data will completely fill the mtu,
the packet checksum will be computed in software instead.
Extend the conditional to include the data that fills the mtu
as well.
Signed-off-by: Vladislav Yasevich
---
net
On Wed, Jan 25, 2017 at 10:34 AM, Xin Long wrote:
>
> On Wed, Jan 25, 2017 at 11:27 PM, Vladislav Yasevich
> wrote:
> > On Tue, Jan 24, 2017 at 1:01 AM, Xin Long wrote:
> >>
> >> sctp_addr_id2transport is a function for sockopt to look up assoc by
> >>
Now that macvlan has a basic queue selection and macvtap has
multiple qdiscs, we can record the the queue index into the skb
based on the index of the macvtap user queue. This index will
then be used to select the right qdisc.
Signed-off-by: Vlad Yasevich
---
drivers/net/macvtap.c | 1 +
1 file
nable sequence will cause the queue index change and we
account for this by updating real queues.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvtap.c | 18 ++
1 file changed, 18 insertions(+)
diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c
index d636d05..81
This patch adds a simple queue selection function to macvlan
layer. In most cases, this will just use the standard fallback
fuction, but when rx-queue has been recoreded we'll try to use
that value.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvlan.c | 20
1
side
is left alone and will prefer skb hash if available.
Macvlan through this all is left with lockless transmit path.
Thanks
-vlad
Vladislav Yasevich (3):
macvtap: mutiple qdiscs support
macvlan: add queue selection functionality
macvtap: Record the rx queue based on the user tap queue
On Fri, Jan 22, 2016 at 3:29 PM, Marcelo Ricardo Leitner
wrote:
> This patch extends commit b93d6471748d ("sctp: implement the sender side
> for SACK-IMMEDIATELY extension") as it didn't white list
> SCTP_SACK_IMMEDIATELY on sctp_msghdr_parse(), causing it to be
> understood as an invalid flag and
.
Fixes: a6e18ff1117 (vlan: Fix untag operations of stacked vlans with
REORDER_HEADER off)
CC: Nicolas Dichtel
CC: Patrick McHardy
Signed-off-by: Vladislav Yasevich
---
net/core/skbuff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
d and at the time of the
forward, vlan headers end up being unexpectedly present.
With the patch, we make sure that we do not put the vlan header
back (when REORDER_HEADER is 0) if a bridge or macvlan has
been configured on top of the vlan device.
Signed-off-by: Vladislav Yasevich
---
include/
that feels like a broader
restriction and _may_ break existing uses.
Thanks
-vlad
Vladislav Yasevich (2):
vlan: Fix untag operations of stacked vlans with REORDER_HEADER off
vlan: Do not put vlan headers back on bridge and macvlan ports
include/linux/netdevice.h | 5 +
net/8021q/v
s a ETH_HLEN.
The value is also updated when the vlan header manupations occur
so we know it will be correct.
Signed-off-by: Vladislav Yasevich
---
net/core/skbuff.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index fab4599..160193f 100
This reverts commit 34c2d9fb0498c066afbe610b15e18995fd8be792.
There are 2 reasons for this revert:
1) The commit in question doesn't do what it says it does. The
description reads: "Allow bridge forward delay to be configured
when Spanning Tree is enabled." This was already the case
galen kernel: []
system_call_fastpath+0x12/0x76
Jun 23 16:25:26 galen kernel: ---[ end trace 22e33f67e70c0c2a ]---
Make sure thet we call finish_wait() if we have the skb to process
before trying to actually process it.
Signed-off-by: Vladislav Yasevich
---
drivers/net/macvtap.c | 5 +++--
1 file
.
Signed-off-by: Vladislav Yasevich
---
net/sctp/sm_sideeffect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c
index fef2acd..1543cf8 100644
--- a/net/sctp/sm_sideeffect.c
+++ b/net/sctp/sm_sideeffect.c
@@ -954,7 +954,7
99 matches
Mail list logo