From patchwork Sat May 18 12:42:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddharth Vadapalli X-Patchwork-Id: 13667626 X-Patchwork-Delegate: kuba@kernel.org Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 F0F0576049; Sat, 18 May 2024 12:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716036277; cv=none; b=crgMTlgOufKc4qBzeBLRNJUVQz/wHmhTb1sBaRmf/tv6jJxbQ0Mur20GA42Evbvpa7HUNiXQtNZbuUdfqlkoArmVMAE5+kXWbX4JSX3MqueeYvtSCLIDUTHFV5NrSsE3umS2F1/cX9sMc2sPg0MfdrBXbqPuiarxgCArecnANpA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716036277; c=relaxed/simple; bh=nU0E2Hu4Vd6tBUu/2Y2ZBPL4LsgszqmUvt7C5YBjkHs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ujWv+ld5id8LjIXxMKy7wW6DPjPj2Hm53zpegKm02Bmkx0/iAORJJRzsygHmsSDy8n9VOqIN7bCiHJbBUdvcNQwPc8ss3iqL0Q2JiBuZ17pUbr1yYXEWlTN9J5P4kxqH2kKQVXD+mG02tlxF+fycc326C3ir21ATcCcsboqJdnQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=CmexDeL3; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="CmexDeL3" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44ICiG14110164; Sat, 18 May 2024 07:44:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716036256; bh=ORTd8VgUuVAq8aYkX1Htufqln1Jye9rbO8cQmwKmnTU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=CmexDeL3dMGrX7cXKw77q1CXfpX2mOC0uO1O/+6jw/J33ORtKgbdUjeBHPiYXjWRv VkSgOGVYeBA1HHKXPePJia/lRCvtzz5AcXFSBsOJgjUa5PeU4llSm3Ccr4GYJcpAqS kjuCBW+x2AcE6ZRIfddc6aa/2rvWxvbpZQvtvA28= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44ICiG4i017802 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 18 May 2024 07:44:16 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 18 May 2024 07:44:15 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 18 May 2024 07:44:15 -0500 Received: from uda0492258.dhcp.ti.com (uda0492258.dhcp.ti.com [172.24.227.9]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44ICgY9b041511; Sat, 18 May 2024 07:44:11 -0500 From: Siddharth Vadapalli To: , , , , , , , CC: , , , , , , , Subject: [RFC PATCH net-next 21/28] net: ethernet: ti: cpsw-proxy-client: register ndo_validate/ndo_set_mac_addr Date: Sat, 18 May 2024 18:12:27 +0530 Message-ID: <20240518124234.2671651-22-s-vadapalli@ti.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240518124234.2671651-1-s-vadapalli@ti.com> References: <20240518124234.2671651-1-s-vadapalli@ti.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC Register "eth_validate_addr()" as the .ndo_validate_addr callback. Register "eth_mac_addr()" as the .ndo_set_mac_address callback. Signed-off-by: Siddharth Vadapalli --- drivers/net/ethernet/ti/cpsw-proxy-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/ti/cpsw-proxy-client.c b/drivers/net/ethernet/ti/cpsw-proxy-client.c index 92a014e83c6c..be42b02c3894 100644 --- a/drivers/net/ethernet/ti/cpsw-proxy-client.c +++ b/drivers/net/ethernet/ti/cpsw-proxy-client.c @@ -1627,6 +1627,8 @@ static const struct net_device_ops cpsw_proxy_client_netdev_ops = { .ndo_start_xmit = vport_ndo_xmit, .ndo_get_stats64 = vport_ndo_get_stats, .ndo_tx_timeout = vport_ndo_tx_timeout, + .ndo_validate_addr = eth_validate_addr, + .ndo_set_mac_address = eth_mac_addr, }; static int init_netdev(struct cpsw_proxy_priv *proxy_priv, struct virtual_port *vport)