From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mail.toke.dk (Postfix) with ESMTPS id 937799E6450 for ; Wed, 1 Feb 2023 18:53:50 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=WwoDIHq+ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675274029; 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=Y3C/jKpTygMNBKacLgOlja89rzh1jqDZR0L6gDa+JpI=; b=WwoDIHq+bKeALx13ah4SAYQYpEKWNZXVMxUjxutBSHyLfBzjIswpzS5nSj7eOgvd2VhE5J 8azGX9xo7jwKloOvalT5msF4DFdLYbJ6EUnPaFRRAIRpJf7F9l7NmC96hxx3aPxX8S3nn1 M1Rgz4yYNRaOT0E8HDxWxFEXiUtliOo= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-74-NY7fc7CtOIG-bSbJsAmH1g-1; Wed, 01 Feb 2023 12:53:47 -0500 X-MC-Unique: NY7fc7CtOIG-bSbJsAmH1g-1 Received: by mail-ed1-f72.google.com with SMTP id y20-20020a056402271400b0046c9a6ec30fso13370325edd.14 for ; Wed, 01 Feb 2023 09:53:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:cc:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Y3C/jKpTygMNBKacLgOlja89rzh1jqDZR0L6gDa+JpI=; b=EoKwL9CWPd94lt0AYUAEdlqK2mgrRFIcACptOTA1vlZk5kR6aFRERGvElj1G3v+WVw M50LiBwWZ5VLGv+EniQAg8NDwwYW9ODvGWsaSVB5VU0E7Uu+AmFOlU7U+ZNhBErPtgE2 w7SBVB3ywLtUXqvQ9pfn5ufWekl/38asgDSpOJRUwgkpbMAknC+Ug9h9mmNwEwNed+TP d0ePBSXHArx5R/8T025X10sZFsBWSumxwPrjLBYRrRY5WVm2ly0rrD84+VeEpdd5ZJUD sy1Ad0V3EfEm4MX/Qz24VPUUryS2br4IAH5U5gAHLJox0wFIKZY6r9+gWXwblvSAzBb3 KqRA== X-Gm-Message-State: AO0yUKX5rGRAD1vgEe7Vu02h2w5R3PTE+FRc7bYwc9khVnhM06neLwec 9IQJprX7FYWfnb/zaafKj8TT57fYXieo7oHq/xswmclSp8Tjlj3BzT1daOZ8Wlud7EgOTKJ/eUc XPV/TpIrK3Rkhe9x2eWeu X-Received: by 2002:a17:907:9914:b0:878:8237:7abb with SMTP id ka20-20020a170907991400b0087882377abbmr4047803ejc.35.1675274026736; Wed, 01 Feb 2023 09:53:46 -0800 (PST) X-Google-Smtp-Source: AK7set9iaHy0dAJGKxRMQzkfuhvMi3UlE3SQOtU6bDESavzDpTPXmKddwsC1a4XXH1ARn7hHErTIlg== X-Received: by 2002:a17:907:9914:b0:878:8237:7abb with SMTP id ka20-20020a170907991400b0087882377abbmr4047778ejc.35.1675274026560; Wed, 01 Feb 2023 09:53:46 -0800 (PST) Received: from [192.168.42.222] (nat-cgn9-185-107-15-52.static.kviknet.net. [185.107.15.52]) by smtp.gmail.com with ESMTPSA id o18-20020a170906359200b0088dc98e4510sm1279111ejb.112.2023.02.01.09.53.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Feb 2023 09:53:46 -0800 (PST) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: <73d3e5c5-a38b-6f83-3022-b0442203ad6b@redhat.com> Date: Wed, 1 Feb 2023 18:53:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 To: Martin KaFai Lau , Stanislav Fomichev References: <167527267453.937063.6000918625343592629.stgit@firesoul> <167527271533.937063.5717065138099679142.stgit@firesoul> <484ca75b-d5f0-31db-6f81-2fb17ce0702e@linux.dev> In-Reply-To: <484ca75b-d5f0-31db-6f81-2fb17ce0702e@linux.dev> 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: base64 Message-ID-Hash: J4IKOIZ3WDCUBDPVXDHEMOGVOTK4KKBQ X-Message-ID-Hash: J4IKOIZ3WDCUBDPVXDHEMOGVOTK4KKBQ X-MailFrom: jbrouer@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: brouer@redhat.com, netdev@vger.kernel.org, martin.lau@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, dsahern@gmail.com, willemb@google.com, void@manifault.com, kuba@kernel.org, xdp-hints@xdp-project.net, bpf@vger.kernel.org X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next V2 2/4] selftests/bpf: xdp_hw_metadata cleanup cause segfault List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: DQoNCk9uIDAxLzAyLzIwMjMgMTguNDYsIE1hcnRpbiBLYUZhaSBMYXUgd3JvdGU6DQo+IE9uIDIv MS8yMyA5OjMxIEFNLCBKZXNwZXIgRGFuZ2FhcmQgQnJvdWVyIHdyb3RlOg0KPj4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