Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp241856lqt; Thu, 6 Jun 2024 02:06:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWabKGCftMMjwG+GFXWAC3URR+BZILHXn/RWZG06mUznzwjGj+6zrUQWmzl2SIBbURpd9soFA7zRssV4nAV9dKzBaOwA2gS4FYNGcPodQ== X-Google-Smtp-Source: AGHT+IE6zs1gqvhuGf7DukmUnge24elaU8dn1596yeaNrhS+Xi9BCMFwGhU8s7x64lJ7k69L5N1I X-Received: by 2002:a05:6a21:9994:b0:1af:cefe:9741 with SMTP id adf61e73a8af0-1b2b6ebadb4mr6743297637.17.1717664803091; Thu, 06 Jun 2024 02:06:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717664803; cv=pass; d=google.com; s=arc-20160816; b=IbnO4waI3Uf6UekiLqOm6+AM3LVYNL+AvEgxoU1W/b0BUJvXPJsHfEInUss/fHW80D NZkAohsqgBELlfI3fskyrTqNwHKPHGo7gTN5VnaidyBWrMroUfSQX+Gt+jVuZNWYjk8V YhR4WyykyS7lWSm3H4EIXSSD72A9NzFfgq1v9gBROVLaB0VxO7nXAEax7vnZbS+NbP9s gUkRNslZYZJ/nVlusvhzBgC4Sw3lU8Fy64uX+RZ4tkhYr1F93V9U1TpvTj1ACWm/YEMk oUYWdQfDhhsolv7+dAM4Aa1wA2CqZBH4ntwk/wRxdbOCZZZu6l5xjP/7kBzp9NDNOVQ1 ux8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=vdPrLiuvgF40hw2ph4ky+Dm5Z/cv/SLXir6p9KYzpaI=; fh=LSo6YofFvqaCkO08Q46p9gek2DTvWGZVNbZb3fpEDK8=; b=utgKLsk8YZFkG48PfjL449IuU0/nbTLHXR3XK9lWfUuEX+sGeL5/b4Y+r5zlGcao2y 4WHMKl3lpzXBHO40q7pYK2NttGuCpFjggcC4KIoQofzjyfStGKdz8kKgqTGQH8cWHXah 4VmBmYzjROOc+vrkv6L8xJascL6xZRNh+k6R704t/5Jc2dJlGG9bZn6p23dyMB+x6JyL WbV40pCQV+v9mYGWxNNo+gMNIvDsJgbToXXkQ2W/xXTnsTsbaiiu9IdZjyCyIFAs2vBF S5HtyhAveCCzywQO0bHPsCBB/L1ImMtgs6eOqmiwnckQZZpnouqUvV/MvLBclfosoxyH JknQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BUpI2OBC; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-203885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203885-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd75f30bsi8085145ad.123.2024.06.06.02.06.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:06:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BUpI2OBC; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-203885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203885-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EAF04B266C1 for ; Thu, 6 Jun 2024 08:53:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 688C213FD9A; Thu, 6 Jun 2024 08:51:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BUpI2OBC" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61F2E137C37 for ; Thu, 6 Jun 2024 08:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717663869; cv=none; b=Xgf54BQ4FIblBJnoqoiR6e4TV4tcpVZWiu4WF5kIZrU5FlSzxCqfWiEJUYqeKFOhtiXkw32nieu5/n3a3rG+S9fNfr9f1SpKUi1PK0P+qrIi33P/OKhHtj8nEMWFbWlXP9d6WLsR90uxH+rVRruBUv7FYDEeWB0R6FnqJw0ExG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717663869; c=relaxed/simple; bh=TFSbATPmebpuP2bR539uiM0+hjJ0146cll+cxhdq0hU=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=Pf0cLH4fbm9kRczk/jEEIObowA6a9U4aleQ8kAcG79UI+lGBOTA4Tm1wnBb7EKQQwqKaflmjO5407BkcrnbEz1VMoTrLMuc6ll/B75RudMkM82Lg/qrbFWmEurnrvx7plIVMIFOHDO+orWZplPKIEMQpFg+Fwg4r7W95uSF0zh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BUpI2OBC; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717663866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=vdPrLiuvgF40hw2ph4ky+Dm5Z/cv/SLXir6p9KYzpaI=; b=BUpI2OBCxocCp4BPpo9HL13PkI0olqSHO70Dnw11xhspj7+3y4sgFbWzQxey0/cq4mQHJ8 BMd+EIN3PWOvTnwGybz7f4DkPq2duRdLgsQnWtwzrzadp9PDfQ3hBDE/XeFaI30ClvH3mn EJxEKccKu102nvttCD7UugKrtZKDxwc= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-304-JzAYE-7eNRGY9BEUuYC3bQ-1; Thu, 06 Jun 2024 04:51:04 -0400 X-MC-Unique: JzAYE-7eNRGY9BEUuYC3bQ-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-4215ee79896so196125e9.0 for ; Thu, 06 Jun 2024 01:51:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717663863; x=1718268663; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vdPrLiuvgF40hw2ph4ky+Dm5Z/cv/SLXir6p9KYzpaI=; b=m9Ta/wZW5MM1vajQJlgz/QWZ4KAkP0CCWSACMsqjID5ai5mFc9IWZzzSMbi2O1CGlu /fG/ldNDs2xqvVJ9qhjpx90AcRSXc3x6QcLDo2z4cxKWl2EtVnHvf6HYYzbXWpuUhuK2 4UQC5FXLGMpZVVUBy57EzJgHXgdwShuLcn5BmfP2RWioYd+OuTP6BcdIJS2cy/t5QLv4 FsxCxagTG/G0IfNDxvXZ4GaFOlhSdMsc7RuG2VEC9rCw6NHxO5gQzWFPysAOF9Ff2zqy o08vBJp+D3gfbBSG/oKKczFUAAUTemIGwGaY9V0kPgj90CGWUHf4NkXbb2KPUxnLbs/F ACQw== X-Forwarded-Encrypted: i=1; AJvYcCXICvTEGmMddiHyYp4wopRqawmE958wIHNbXlgNjmwmEskbyn9cAs8A22xz6+FGDW4vINGcD3AwovLZVMxHOXtu3oV3xC97Qmfcfibu X-Gm-Message-State: AOJu0YwLcRbuczt3uwD6HL5A7zQHh5l5lVR2858mNw6glF5bl+Ko0rcB Ej3pf8i1g8te3XUtfIg2Z7hk7UZbMj++11QTPYHABFMgCMwsHHz4GzBWT1tUihg7VNkkQ1OeTk1 dOdPCTwJaJTujCxzHRcnTAZj1xH+Cjrh/GqGueegBBEiMxPrAf4LfJ01/kCDctg== X-Received: by 2002:a05:600c:138c:b0:421:2aea:b479 with SMTP id 5b1f17b1804b1-4215635b96emr37911235e9.4.1717663863462; Thu, 06 Jun 2024 01:51:03 -0700 (PDT) X-Received: by 2002:a05:600c:138c:b0:421:2aea:b479 with SMTP id 5b1f17b1804b1-4215635b96emr37910875e9.4.1717663862478; Thu, 06 Jun 2024 01:51:02 -0700 (PDT) Received: from gerbillo.redhat.com ([2a0d:3344:1b74:3a10::f71]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4215c364bcdsm13731365e9.19.2024.06.06.01.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 01:51:02 -0700 (PDT) Message-ID: Subject: Re: [PATCH v2 net-next] net: hsr: Send supervisory frames to HSR network with ProxyNodeTable data From: Paolo Abeni To: Lukasz Majewski , Jakub Kicinski , netdev@vger.kernel.org, Wojciech Drewek Cc: Eric Dumazet , Vladimir Oltean , "David S. Miller" , Oleksij Rempel , Tristram.Ha@microchip.com, Sebastian Andrzej Siewior , Ravi Gunasekaran , Simon Horman , Nikita Zhandarovich , Murali Karicheri , Arvid Brodin , Dan Carpenter , "Ricardo B. Marliere" , Casper Andersson , linux-kernel@vger.kernel.org, Hangbin Liu , Geliang Tang , Shuah Khan , Shigeru Yoshida Date: Thu, 06 Jun 2024 10:51:00 +0200 In-Reply-To: <20240604084348.3259917-1-lukma@denx.de> References: <20240604084348.3259917-1-lukma@denx.de> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC1Zmnm3x4u9r22mbMDr0uWqDqwhsvkanYmn4umDKc1ZkBnDIbbumd40x9CKgG6ogVlLYeJa9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D9WF+m7dPlRVY7soqEYXylyCOXr5516upH8vVBmqweCIxXSWqPAhQq8d3hB/Ww2A0H0PBTN1REVw8pRLNApEA7C2nX6RW0XmA53PIQvAP0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-06-04 at 10:43 +0200, Lukasz Majewski wrote: > This patch provides support for sending supervision HSR frames with > MAC addresses stored in ProxyNodeTable when RedBox (i.e. HSR-SAN) is > enabled. >=20 > Supervision frames with RedBox MAC address (appended as second TLV) > are only send for ProxyNodeTable nodes. >=20 > This patch series shall be tested with hsr_redbox.sh script. I don't see any specific check for mac addresses in hsr_redbox.sh, am I missing something? Otherwise please update the self-tests, too. >=20 > Signed-off-by: Lukasz Majewski > --- >=20 > Changes for v2: > - Fix the Reverse Christmas Tree formatting > - Return directly values from hsr_is_node_in_db() and ether_addr_equal() > - Change the internal variable check > --- > net/hsr/hsr_device.c | 63 ++++++++++++++++++++++++++++++++++-------- > net/hsr/hsr_forward.c | 37 +++++++++++++++++++++++-- > net/hsr/hsr_framereg.c | 12 ++++++++ > net/hsr/hsr_framereg.h | 2 ++ > net/hsr/hsr_main.h | 4 ++- > net/hsr/hsr_netlink.c | 1 + > 6 files changed, 105 insertions(+), 14 deletions(-) >=20 > diff --git a/net/hsr/hsr_device.c b/net/hsr/hsr_device.c > index e6904288d40d..ad7cb9b29273 100644 > --- a/net/hsr/hsr_device.c > +++ b/net/hsr/hsr_device.c > @@ -73,9 +73,15 @@ static void hsr_check_announce(struct net_device *hsr_= dev) > mod_timer(&hsr->announce_timer, jiffies + > msecs_to_jiffies(HSR_ANNOUNCE_INTERVAL)); > } > + > + if (hsr->redbox && !timer_pending(&hsr->announce_proxy_timer)) > + mod_timer(&hsr->announce_proxy_timer, jiffies + > + msecs_to_jiffies(HSR_ANNOUNCE_INTERVAL) / 2); > } else { > /* Deactivate the announce timer */ > timer_delete(&hsr->announce_timer); > + if (hsr->redbox) > + timer_delete(&hsr->announce_proxy_timer); > } > } > =20 > @@ -279,10 +285,11 @@ static struct sk_buff *hsr_init_skb(struct hsr_port= *master) > return NULL; > } > =20 > -static void send_hsr_supervision_frame(struct hsr_port *master, > - unsigned long *interval) > +static void send_hsr_supervision_frame(struct hsr_port *port, > + unsigned long *interval, > + const unsigned char addr[ETH_ALEN]) please use 'const unsigned char *addr' instead. The above syntax is misleading > { > - struct hsr_priv *hsr =3D master->hsr; > + struct hsr_priv *hsr =3D port->hsr; > __u8 type =3D HSR_TLV_LIFE_CHECK; > struct hsr_sup_payload *hsr_sp; > struct hsr_sup_tlv *hsr_stlv; [...] > @@ -340,13 +348,14 @@ static void send_hsr_supervision_frame(struct hsr_p= ort *master, > return; > } > =20 > - hsr_forward_skb(skb, master); > + hsr_forward_skb(skb, port); > spin_unlock_bh(&hsr->seqnr_lock); > return; > } > =20 > static void send_prp_supervision_frame(struct hsr_port *master, > - unsigned long *interval) > + unsigned long *interval, > + const unsigned char addr[ETH_ALEN]) Same here. > { > struct hsr_priv *hsr =3D master->hsr; > struct hsr_sup_payload *hsr_sp; > @@ -396,7 +405,7 @@ static void hsr_announce(struct timer_list *t) > =20 > rcu_read_lock(); > master =3D hsr_port_get_hsr(hsr, HSR_PT_MASTER); > - hsr->proto_ops->send_sv_frame(master, &interval); > + hsr->proto_ops->send_sv_frame(master, &interval, master->dev->dev_addr)= ; > =20 > if (is_admin_up(master->dev)) > mod_timer(&hsr->announce_timer, jiffies + interval); > @@ -404,6 +413,37 @@ static void hsr_announce(struct timer_list *t) > rcu_read_unlock(); > } > =20 > +/* Announce (supervision frame) timer function for RedBox > + */ > +static void hsr_proxy_announce(struct timer_list *t) > +{ > + struct hsr_priv *hsr =3D from_timer(hsr, t, announce_proxy_timer); > + struct hsr_port *interlink; > + unsigned long interval =3D 0; > + struct hsr_node *node; > + > + rcu_read_lock(); > + /* RedBOX sends supervisory frames to HSR network with MAC addresses > + * of SAN nodes stored in ProxyNodeTable. > + */ > + interlink =3D hsr_port_get_hsr(hsr, HSR_PT_INTERLINK); > + list_for_each_entry_rcu(node, &hsr->proxy_node_db, mac_list) { > + if (hsr_addr_is_redbox(hsr, node->macaddress_A)) > + continue; > + hsr->proto_ops->send_sv_frame(interlink, &interval, > + node->macaddress_A); > + } > + > + if (is_admin_up(interlink->dev)) { > + if (!interval) > + interval =3D msecs_to_jiffies(HSR_ANNOUNCE_INTERVAL); > + > + mod_timer(&hsr->announce_proxy_timer, jiffies + interval); > + } > + > + rcu_read_unlock(); > +} > + > void hsr_del_ports(struct hsr_priv *hsr) > { > struct hsr_port *port; > @@ -590,6 +630,7 @@ int hsr_dev_finalize(struct net_device *hsr_dev, stru= ct net_device *slave[2], > timer_setup(&hsr->announce_timer, hsr_announce, 0); > timer_setup(&hsr->prune_timer, hsr_prune_nodes, 0); > timer_setup(&hsr->prune_proxy_timer, hsr_prune_proxy_nodes, 0); > + timer_setup(&hsr->announce_proxy_timer, hsr_proxy_announce, 0); > =20 > ether_addr_copy(hsr->sup_multicast_addr, def_multicast_addr); > hsr->sup_multicast_addr[ETH_ALEN - 1] =3D multicast_spec; > diff --git a/net/hsr/hsr_forward.c b/net/hsr/hsr_forward.c > index 05a61b8286ec..003070dbfcb4 100644 > --- a/net/hsr/hsr_forward.c > +++ b/net/hsr/hsr_forward.c > @@ -117,6 +117,35 @@ static bool is_supervision_frame(struct hsr_priv *hs= r, struct sk_buff *skb) > return true; > } > =20 > +static bool is_proxy_supervision_frame(struct hsr_priv *hsr, > + struct sk_buff *skb) > +{ > + struct hsr_sup_payload *payload; > + struct ethhdr *eth_hdr; > + u16 total_length =3D 0; > + > + eth_hdr =3D (struct ethhdr *)skb_mac_header(skb); > + > + /* Get the HSR protocol revision. */ > + if (eth_hdr->h_proto =3D=3D htons(ETH_P_HSR)) > + total_length =3D sizeof(struct hsrv1_ethhdr_sp); > + else > + total_length =3D sizeof(struct hsrv0_ethhdr_sp); > + > + if (!pskb_may_pull(skb, total_length)) It looks like 'total_length' does not include 'sizeof hsr_sup_payload'? > + return false; > + > + skb_pull(skb, total_length); > + payload =3D (struct hsr_sup_payload *)skb->data; > + skb_push(skb, total_length); No need to actually pull the data, you could do directly: payload =3D (struct hsr_sup_payload *)skb->data[total_length]; Thanks, Paolo