From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3C8AB43DA3 for ; Mon, 8 Apr 2024 14:50:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 141D840289; Mon, 8 Apr 2024 14:50:58 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id F0A4840041 for ; Mon, 8 Apr 2024 14:50:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712580656; 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; bh=m5fc0UJDppX6aBtKX125WoCag8gtrVjMrUOaAKkpBR0=; b=BOQdellxWh21niTZjH8l9WapvHD1SXsgF+TDyw1GQ92P8rcaYhHBMOHPn5r8uCd2S+unkg n+uetSrGOpKVoeL00HTCyMgK71NRgQ06lXRifbaOnoq9RBoDYARDMdKxH0iF3fYYmBMV92 BszblveLBFpQcRudk3GBLLVOfVHE4q0= Received: from mail-yb1-f197.google.com (mail-yb1-f197.google.com [209.85.219.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-177-I6Aawze8Mv2RZh8yebb_lg-1; Mon, 08 Apr 2024 08:50:55 -0400 X-MC-Unique: I6Aawze8Mv2RZh8yebb_lg-1 Received: by mail-yb1-f197.google.com with SMTP id 3f1490d57ef6-dcc05887ee9so5800456276.1 for ; Mon, 08 Apr 2024 05:50:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712580654; x=1713185454; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=m5fc0UJDppX6aBtKX125WoCag8gtrVjMrUOaAKkpBR0=; b=EYtM8kzFGUvMmbEe48cDqMGuo6P8Wd8pQn/EOrNH3pP3hHDnMZvV4t0NWFyEDyt0c1 agHAFRsefQMHbBX24rNf+jPZyJxPEN4bIXAbQjcSUZBpxM15gfwCjOznW5euHdeP8SMQ UGUAN07vDdkCnU4F9OgY7/r5oeEbX7/9fsSpfch32Pd1XYzwrfvhHCkyket2Pr0gVAAr Chlaf0htBaODIwE4YAwI0zJ09EjY+vj8/KZ69SY5WETzBJncwPZ1U1xgwrQdumBeOhuR apuvU7KRSN49Z4V1053E4F0nIqHuftdgcKEvb2KlI0FDaL/uhw+Kko1yaTe+fPqesWUz af2Q== X-Forwarded-Encrypted: i=1; AJvYcCXJPxa1kQG/WoEz6GrPaTaS2vujpkpeEZHcEV6Vxy1DkBIpbbtnLgh0hbxs19zUv00bmAmFHvYVUDFKfEwj5no= X-Gm-Message-State: AOJu0YyWcIaGoUV51fwLOGr2/yA8n4JBMP3a9rTBtc7VB5P7zt5O23Ox VeFCOpH+6Fi6rYy/l2vp4hsHGMoOXY8r6ZaJkHT26i3NHQeYDAVczfokpM2WZBpeE6BNJlurkKe oEFM50ngXWrkgcCrx7Gkq9SQZxAvsDs/uUi31MXrBbZA6 X-Received: by 2002:a25:6cc6:0:b0:de1:849:a6f3 with SMTP id h189-20020a256cc6000000b00de10849a6f3mr698166ybc.7.1712580654530; Mon, 08 Apr 2024 05:50:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjXk3CBgzfz3jg3GKLw0cnGUBTxS/lUjYb/7lZTTqbB7+ieybzUX5wsEmGqxAYUt6P/uciUA== X-Received: by 2002:a25:6cc6:0:b0:de1:849:a6f3 with SMTP id h189-20020a256cc6000000b00de10849a6f3mr698148ybc.7.1712580654169; Mon, 08 Apr 2024 05:50:54 -0700 (PDT) Received: from [192.168.0.12] ([78.19.74.23]) by smtp.gmail.com with ESMTPSA id df12-20020a05622a0ecc00b00434b8812a85sm374618qtb.94.2024.04.08.05.50.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Apr 2024 05:50:53 -0700 (PDT) Message-ID: <30f91607-af92-47b9-aed3-0a6d47c2d725@redhat.com> Date: Mon, 8 Apr 2024 13:50:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [v13 2/3] net/af_xdp: fix multi interface support for K8s To: "Loftus, Ciara" , "ferruh.yigit@amd.com" , "stephen@networkplumber.org" , "lihuisong@huawei.com" , "fengchengwen@huawei.com" , "liuyonglong@huawei.com" , "Marchand, David" , "Koikkara Reeny, Shibin" Cc: "dev@dpdk.org" , "stable@dpdk.org" References: <20240404142326.2151118-1-mtahhan@redhat.com> <20240404142326.2151118-3-mtahhan@redhat.com> From: Maryam Tahhan In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On 08/04/2024 11:46, Loftus, Ciara wrote: >> +#ifdef ETH_AF_XDP_UPDATE_XSKMAP >> +static __rte_always_inline int >> +update_xskmap(struct xsk_socket *xsk, int map_fd, int xsk_queue_idx >> __rte_unused) >> +{ >> + return xsk_socket__update_xskmap(xsk, map_fd); >> +} >> +#else >> +static __rte_always_inline int >> +update_xskmap(struct xsk_socket *xsk, int map_fd, int xsk_queue_idx) >> +{ >> + int fd = xsk_socket__fd(xsk); > 'fd' computed here is not used in this function so generates an unused variable warning. Thanks Ciara, sorry I missed this. I will fix it >> + return bpf_map_update_elem(map_fd, &xsk_queue_idx, &map_fd, >> 0); >> +} >> +#endif >> +