aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMahesh Bandewar <maheshb@google.com>2015-05-09 00:01:56 -0700
committerDavid S. Miller <davem@davemloft.net>2015-05-11 10:59:32 -0400
commit74514957552edd4661a4608618121f3c71d4e891 (patch)
tree55a5135cd68d30e3ca507a13f258a51a1dd0abc1 /net/switchdev/switchdev.c
parentbonding: Allow userspace to set actors' system_priority in AD system (diff)
downloadlinux-74514957552edd4661a4608618121f3c71d4e891.tar.gz
linux-74514957552edd4661a4608618121f3c71d4e891.zip
bonding: Allow userspace to set actors' macaddr in an AD-system.
In an AD system, the communication between actor and partner is the business between these two entities. In the current setup anyone on the same L2 can "guess" the LACPDU contents and then possibly send the spoofed LACPDUs and trick the partner causing connectivity issues for the AD system. This patch allows to use a random mac-address obscuring it's identity making it harder for someone in the L2 is do the same thing. This patch allows user-space to choose the mac-address for the AD-system. This mac-address can not be NULL or a Multicast. If the mac-address is set from user-space; kernel will honor it and will not overwrite it. In the absence (value from user space); the logic will default to using the masters' mac as the mac-address for the AD-system. It can be set using example code below - # modprobe bonding mode=4 # sys_mac_addr=$(printf '%02x:%02x:%02x:%02x:%02x:%02x' \ $(( (RANDOM & 0xFE) | 0x02 )) \ $(( RANDOM & 0xFF )) \ $(( RANDOM & 0xFF )) \ $(( RANDOM & 0xFF )) \ $(( RANDOM & 0xFF )) \ $(( RANDOM & 0xFF ))) # echo $sys_mac_addr > /sys/class/net/bond0/bonding/ad_actor_system # echo +eth1 > /sys/class/net/bond0/bonding/slaves ... # ip link set bond0 up Signed-off-by: Mahesh Bandewar <maheshb@google.com> Reviewed-by: Nikolay Aleksandrov <nikolay@redhat.com> [jt: fixed up style issues reported by checkpatch] Signed-off-by: Jonathan Toppins <jtoppins@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
commit/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h?id=723fac64d05d7005929babbeb41dd09fb45f6f35&follow=1'>drm/amdgpu: support the port num info based on the capability flagShiwu Zhang2-13/+33 2023-10-20drm/amdgpu: prepare the output buffer for GET_PEER_LINKS commandShiwu Zhang1-2/+10 2023-10-20drm/amdgpu: drop status query/reset for GCEA 9.4.3 and MMEA 1.8Tao Zhou2-203/+0 2023-10-20drm/amdgpu: update the xgmi ta interface headerShiwu Zhang2-17/+51 2023-10-20drm/amdgpu: add set/get mca debug mode operationsTao Zhou2-0/+26 2023-10-20drm/amdgpu: replace reset_error_count with amdgpu_ras_reset_error_countTao Zhou5-25/+10 2023-10-20drm/amdgpu: add clockgating support for NBIO v7.7.1Li Ma1-0/+1 2023-10-20drm/amdgpu: fix missing stuff in NBIO v7.11Li Ma4-1/+97 2023-10-20drm/amdgpu: Enable RAS feature by default for APUStanley.Yang1-12/+2 2023-10-20drm/amdgpu: fix typo for amdgpu ras error data printYang Wang1-2/+2 2023-10-20drm/amd/amdgpu/vcn: Add RB decouple feature under SRIOV - P4Bokun Zhang1-16/+55 2023-10-20drm/amd/amdgpu/vcn: Add RB decouple feature under SRIOV - P3Bokun Zhang1-7/+41 2023-10-20drm/amd/amdgpu/vcn: Add RB decouple feature under SRIOV - P2Bokun Zhang1-0/+4 2023-10-20drm/amd/amdgpu/vcn: Add RB decouple feature under SRIOV - P1Bokun Zhang1-2/+3 2023-10-20drm/amdgpu: Fix delete nodes that have been relesedStanley.Yang1-3/+1 2023-10-20drm/amdgpu: Enable mca debug mode mode when ras enabledStanley.Yang1-1/+1 2023-10-20drm/amdgpu: Add UVD_VCPU_INT_EN2 to dpg sramHawking Zhang1-0/+5 2023-10-20drm/amd/display: Respect CONFIG_FRAME_WARN=0 in DML2Nathan Chancellor1-1/+1 2023-10-20drm/amd/display: clean up some inconsistent indentingJiapeng Chong1-1/+1 2023-10-20drm/amd/display: Simplify bool conversionYang Li1-1/+1 2023-10-20drm/amd/display: Remove unneeded semicolonYang Li1-1/+1 2023-10-20drm/amd/display: Remove duplicated include in dce110_hwseq.cYang Li1-2/+0 2023-10-20drm/amd/display: clean up some inconsistent indentingsYang Li1-72/+72 2023-10-20drm/amd/pm: Handle non-terminated overdrive commands.Bas Nieuwenhuizen1-2/+6 2023-10-20drm/amdgpu: Enable software RAS in vcn v4_0_3Hawking Zhang1-1/+3 2023-10-20drm/amdgpu: define ras_reset_error_count functionTao Zhou2-4/+17 2023-10-20drm/amdkfd:remove unused codeJesse Zhang2-63/+0 2023-10-20drm/amd/pm: Support for getting power1_cap_min valueMa Jun12-88/+148 2023-10-20drm/amdgpu: Log UE corrected by replay as correctable errorCandice Li1-3/+4 2023-10-20efi/unaccepted: Fix soft lockups caused by parallel memory acceptanceKirill A. Shutemov1-4/+60