From e7993df5283f320436355e05a842f6eeb6df7cd8 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Feb 03 2021 06:13:36 +0000 Subject: import nispor-1.0.1-3.el8 --- diff --git a/SOURCES/BZ_1919986-bond-add-support-to-vlan-srcmac-tx-hashing-option.patch b/SOURCES/BZ_1919986-bond-add-support-to-vlan-srcmac-tx-hashing-option.patch new file mode 100644 index 0000000..3af2e0b --- /dev/null +++ b/SOURCES/BZ_1919986-bond-add-support-to-vlan-srcmac-tx-hashing-option.patch @@ -0,0 +1,47 @@ +From 32e5d0a2e217322e144fe1ffe916e217133c2b74 Mon Sep 17 00:00:00 2001 +From: Fernando Fernandez Mancera +Date: Mon, 25 Jan 2021 13:59:40 +0100 +Subject: [PATCH] bond: add support to vlan+srcmac tx hashing option + +The new vlan+srcmac tx hashing option is now available at kernel +upstream. Nispor should support it. + +Ref: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=7b8fc0103bb51d1d3e1fb5fd67958612e709f883 + +Signed-off-by: Fernando Fernandez Mancera +--- + src/lib/ifaces/bond.rs | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/lib/ifaces/bond.rs b/src/lib/ifaces/bond.rs +index d3a3b6c..63fafeb 100644 +--- a/src/lib/ifaces/bond.rs ++++ b/src/lib/ifaces/bond.rs +@@ -171,6 +171,7 @@ const BOND_XMIT_POLICY_LAYER34: u8 = 1; + const BOND_XMIT_POLICY_LAYER23: u8 = 2; + const BOND_XMIT_POLICY_ENCAP23: u8 = 3; + const BOND_XMIT_POLICY_ENCAP34: u8 = 4; ++const BOND_XMIT_POLICY_VLAN_SRCMAC: u8 = 5; + + #[derive(Serialize, Deserialize, Debug, PartialEq, Clone)] + #[serde(rename_all = "lowercase")] +@@ -185,6 +186,8 @@ pub enum BondXmitHashPolicy { + Encap23, + #[serde(rename = "encap3+4")] + Encap34, ++ #[serde(rename = "vlan+srcmac")] ++ VlanSrcMac, + Other(u8), + } + +@@ -196,6 +199,7 @@ impl From for BondXmitHashPolicy { + BOND_XMIT_POLICY_LAYER23 => Self::Layer23, + BOND_XMIT_POLICY_ENCAP23 => Self::Encap23, + BOND_XMIT_POLICY_ENCAP34 => Self::Encap34, ++ BOND_XMIT_POLICY_VLAN_SRCMAC => Self::VlanSrcMac, + _ => Self::Other(d), + } + } +-- +2.29.2 + diff --git a/SPECS/nispor.spec b/SPECS/nispor.spec index d35fcb8..7c0df91 100644 --- a/SPECS/nispor.spec +++ b/SPECS/nispor.spec @@ -1,11 +1,12 @@ Name: nispor Version: 1.0.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: API for network status querying License: ASL 2.0 URL: https://github.com/nispor/nispor Source: https://github.com/nispor/nispor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: %{name}-%{version}-vendor.tar.xz +Patch0: BZ_1919986-bond-add-support-to-vlan-srcmac-tx-hashing-option.patch BuildRequires: pkg-config BuildRequires: python3-devel BuildRequires: rust-toolset @@ -89,6 +90,9 @@ popd %{_libdir}/pkgconfig/nispor.pc %changelog +* Tue Feb 02 2021 Fernando Fernandez Mancera - 1.0.1-3 +- Add support to bond vlan+srcmac tx hashing option. RHBZ#1919986 + * Fri Nov 13 2020 Gris Ge - 1.0.1-2 - Upload new cargo vendor tarbal without crates used for windows platform.