From patchwork Mon Nov 27 18:32:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larysa Zaremba X-Patchwork-Id: 13470096 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HBIBKxFM" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 959B81A1; Mon, 27 Nov 2023 10:51:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701111102; x=1732647102; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fFpHfP4ITdLtgR0u/kz6TTamJSgRwMGF34hlG9l1BU0=; b=HBIBKxFMLIrqxD3Nm7iwEe8xtkGmiia1YbG3QyskUsyzcMUQZciGYrUT fsB0kFkc1fhgv7aYzDza8eFqf4KIMS1/JgdEnqJMaAennCzRkkTo6mtH7 inarQNKt6esBnjG2pEEb0sMAcRX9/99A91Ae1/pVJyKdBP/0V3xRxsscg C8Ot7iKDkimkbZaoCAHy6uAwa81G4ze0OwGr6YaXtTvmcsW3/Pxzeppxq FQ7zuOAYtWM8kabMOr2RQk1l6RKgC3M6ZcS7wAtsR7jMtR22znoIITxL0 ETtcoFJNPNmRAVvholcNhHxj5hzI27KnN+x/C0d3dbWlACbf0NLONQqvg w==; X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="389921339" X-IronPort-AV: E=Sophos;i="6.04,231,1695711600"; d="scan'208";a="389921339" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 10:51:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,231,1695711600"; d="scan'208";a="16376300" Received: from irvmail002.ir.intel.com ([10.43.11.120]) by orviesa001.jf.intel.com with ESMTP; 27 Nov 2023 10:51:38 -0800 Received: from lincoln.igk.intel.com (lincoln.igk.intel.com [10.102.21.235]) by irvmail002.ir.intel.com (Postfix) with ESMTP id B002838D80; Mon, 27 Nov 2023 18:33:48 +0000 (GMT) From: Larysa Zaremba To: bpf@vger.kernel.org Cc: Larysa Zaremba , netdev@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , Eric Dumazet , Magnus Karlsson , Willem de Bruijn , Yunsheng Lin , Maciej Fijalkowski , John Fastabend , Aleksander Lobakin Subject: [PATCH bpf-next v3 0/2] Allow data_meta size > 32 Date: Mon, 27 Nov 2023 19:32:14 +0100 Message-ID: <20231127183216.269958-1-larysa.zaremba@intel.com> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: bpf@iogearbox.net Currently, there is no reason for data_meta to be limited to 32 bytes. Loosen this limitation and make maximum meta size 252. Also, modify the selftest, so test_xdp_context_error does not complain about the unexpected success. v2->v3: * Fix main patch author * Add selftests path v1->v2: * replace 'typeof(metalen)' with the actual type Aleksander Lobakin (1): net, xdp: allow metadata > 32 Larysa Zaremba (1): selftests/bpf: increase invalid metadata size include/linux/skbuff.h | 13 ++++++++----- include/net/xdp.h | 7 ++++++- .../selftests/bpf/prog_tests/xdp_context_test_run.c | 4 ++-- 3 files changed, 16 insertions(+), 8 deletions(-)