From nobody Sat Apr 30 18:11:43 2022 X-Original-To: ipfw@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BEEB21AAD2E7 for ; Sat, 30 Apr 2022 18:11:51 +0000 (UTC) (envelope-from smalukav@gmail.com) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KrHVt6Yfkz3PQ2 for ; Sat, 30 Apr 2022 18:11:50 +0000 (UTC) (envelope-from smalukav@gmail.com) Received: by mail-wr1-x42c.google.com with SMTP id d5so14638129wrb.6 for ; Sat, 30 Apr 2022 11:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject:content-transfer-encoding; bh=oysYZCdDnHnKtpU4ikGa9hj5he/4N7XAMY1wraHnt54=; b=e4j5oMaRETUdRxm473SoBciEAn38ZsbvP4VPZGS83WBpoTMLiKBE2Mfhv/1d79fhxv B78+kxzZvKVxVfEj1Ds/F2zVG/cUoJPU7eZvPS3SytXo4FbEhjkWNo3uptm8VhoVUsa1 GJv2Rmm9DxRCEUEPOtk9hjaxUj0DPijLLcPdnIrx5BhIGnHm+G1HWe60oJBw1F5ISP3i mq8LT0Ba/2HkELeiJIkdQMpGcuEgUxD77Lcab7Tkr+fSqwbijc3Wec0AMbpbhL7yUBnw oP12p/m3bukfuCPpcXU6t/51RfHG3KDL/ASk1IGevrqcSi1XM+MuxHzS08uiC7zavn5H eqRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject:content-transfer-encoding; bh=oysYZCdDnHnKtpU4ikGa9hj5he/4N7XAMY1wraHnt54=; b=mxstjgtEBbUfpZ3sb69bZL5HGp51D9Nwfuiasq1iUoV2cwdK8iGOStHEOcbeR7+fCt TyRcmz2oXJlgZX5UThChRprCu/ze5Yz6slQY0+YndSkJMtCY3ZVGDmctLDG6WBmZ/5nk 2e2yLXLWHi/hiKl58M1EB8WLw+ETfcW5BxuLapB7vPwRqHkB1FccpC5UiR03ASsTuGC8 FIOrkjUkoX5YfT6CaMs4L1vBdie7THH2KbgldSlMd2QF+UOIpl+SuJRLvq3ucqWnVkzH jydO6JVPE5GlznevqB8o1op6CWnVBaVDGfRaK5flVUzdpSbp7KfhKyl0bdFWI3N1U3bw oTHg== X-Gm-Message-State: AOAM531B88Q7H7G1q6maqkTJyw4TzqPg1+Hk4yuxs3Djl1OVP7Hdm8hD TmiF5sNmgz2371fxlaqZMvQL2XFtg3k= X-Google-Smtp-Source: ABdhPJy00a4mXDHI8g75uCbcHW/ukOIIRRkdFcQGYGYsvQyPUkoMhuHFZVZUumyyW39OKz8HDyp+PQ== X-Received: by 2002:a05:6000:144a:b0:20a:a329:aa46 with SMTP id v10-20020a056000144a00b0020aa329aa46mr3879360wrx.36.1651342304566; Sat, 30 Apr 2022 11:11:44 -0700 (PDT) Received: from [192.168.0.156] (broadband-46-242-12-156.ip.moscow.rt.ru. [46.242.12.156]) by smtp.gmail.com with ESMTPSA id j1-20020adfa541000000b0020c5253d926sm2586342wrb.114.2022.04.30.11.11.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Apr 2022 11:11:44 -0700 (PDT) Message-ID: <8fd0c6f1-076e-c677-bc96-8b9359157747@gmail.com> Date: Sat, 30 Apr 2022 21:11:43 +0300 List-Id: IPFW Technical Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ipfw List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ipfw@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: ipfw@freebsd.org From: Arseny Smalyuk Subject: [patch] Support radix tables and table lookup for MAC addresses Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KrHVt6Yfkz3PQ2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=e4j5oMaR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of smalukav@gmail.com designates 2a00:1450:4864:20::42c as permitted sender) smtp.mailfrom=smalukav@gmail.com X-Spamd-Result: default: False [-3.92 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[46.242.12.156:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.92)[-0.919]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[ipfw@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42c:from]; MLMMJ_DEST(0.00)[ipfw]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi! I've made yet another attempt to implement ipfw radix tables for MAC addresses. If you need to check a packet against a lot of MAC addresses and have performance issues, it can help you. See the patch at https://reviews.freebsd.org/D35103