From owner-freebsd-questions@freebsd.org Mon Aug 17 13:13:56 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F33BB3B2A56 for ; Mon, 17 Aug 2020 13:13:56 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [IPv6:2607:f3e0:0:3::19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pyroxene.sentex.ca", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BVZHm0vS1z3RpT; Mon, 17 Aug 2020 13:13:56 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:6875:c904:4183:9428] ([IPv6:2607:f3e0:0:4:6875:c904:4183:9428]) by pyroxene2a.sentex.ca (8.15.2/8.15.2) with ESMTPS id 07HDDtb7062228 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Mon, 17 Aug 2020 09:13:55 -0400 (EDT) (envelope-from mike@sentex.net) To: FreeBSD Questions From: mike tancsa Subject: packet filtering via Chelsio NICs Autocrypt: addr=mike@sentex.net; keydata= mQENBFywzOMBCACoNFpwi5MeyEREiCeHtbm6pZJI/HnO+wXdCAWtZkS49weOoVyUj5BEXRZP xflV2ib2hflX4nXqhenaNiia4iaZ9ft3I1ebd7GEbGnsWCvAnob5MvDZyStDAuRxPJK1ya/s +6rOvr+eQiXYNVvfBhrCfrtR/esSkitBGxhUkBjOti8QwzD71JVF5YaOjBAs7jZUKyLGj0kW yDg4jUndudWU7G2yc9GwpHJ9aRSUN8e/mWdIogK0v+QBHfv/dsI6zVB7YuxCC9Fx8WPwfhDH VZC4kdYCQWKXrm7yb4TiVdBh5kgvlO9q3js1yYdfR1x8mjK2bH2RSv4bV3zkNmsDCIxjABEB AAG0HW1pa2UgdGFuY3NhIDxtaWtlQHNlbnRleC5uZXQ+iQFUBBMBCAA+FiEEmuvCXT0aY6hs 4SbWeVOEFl5WrMgFAlywzOYCGwMFCQHhM4AFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ eVOEFl5WrMhnPAf7Bf+ola0V9t4i8rwCMGvzkssGaxY/5zNSZO9BgSgfN0WzgmBEOy/3R4km Yn5KH94NltJYAAE5hqkFmAwK6psOqAR9cxHrRfU+gV2KO8pCDc6K/htkQcd/mclJYpCHp6Eq EVJOiAxcNaYuHZkeMdXDuvvI5Rk82VHk84BGgxIqIrhLlkguoPbXOOa+8c/Mpb1sRAGZEOuX EzKNC49+GS9gKW6ISbanyPsGEcFyP7GKMzcHBPf3cPrewZQZ6gBoNscasL6IJeAQDqzQAxbU GjO0qBSMRgnLXK7+DJlxrYdHGXqNbV6AYsmHJ6c2WWWiuRviFBqXinlgJ2FnYebZPAfWiQ== Message-ID: <6628bb23-c263-0cd7-4861-642977dfe467@sentex.net> Date: Mon, 17 Aug 2020 09:13:55 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1597670036; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:autocrypt:autocrypt; bh=/s0ZEwrTLKIbN4XDTIfY2M3iWaZ02/m6zw52XHW2y2U=; b=nL0KJj9i+VlHqhSx7euQSdq5zNnqVkY/zKxiN8l68X2wUN9VQmqp5+p4Q+r7+mffYDIybl M/79xqlmCHT21vQTt8fZ6iXqMwwQivwDgKYfO1n7LqMNChSdQtNUeIaqIo3Beu/ilC9cfQ jd3EdNbf95GvdwSC3agGkNl4XJw0R95TpUNpptwLVmqbfCoyvhi+TDnTuyM1p9VdiZuU4/ iyvVgub+zq4udxvgo2u7SPkOuD8b11XpMqGoc+KwE6XqXzjN7enWJVoI1JD0Dt7QK/obcG 58iNTJ5PQJyXb51WvU6F1dqhRZ2khWvdBfAoKL/pScefNMObig8EdCOA7/ifcg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1597670036; a=rsa-sha256; cv=none; b=wWJ+JYr+GNOQyMhw/aOph77ioC7dVjA//JrRgn7M60MfzuD6eoKo5TmfxYwzpwemGCw0LJ wEu2GAIXQrYIq/MW/bKBdmLtR9yVtwxpQqSIlynK0jaf0z4kayakAOJh3JJwfvtOfLBxwF 3hSaCSaoDgDSh5Y5xzhXhBheUd6jA0QIZTsut4sUJEEZl2AhJZ7sxrD8GO40B0cJCM1A8O CLeEDMJcCkd2BJ5SPJsy0Y+DhQWM4Izwtr95p/fbZv9u5vflkyr3TSiVxvpKE2HWTcuyjG xocGEMuRFl6rksaTS8zT9waW+vCnTy7ow7+TBMPUVUFDlvE7rTfsC5MReZZHFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:3::19 as permitted sender) smtp.mailfrom=mike@sentex.net X-Rspamd-Queue-Id: 4BVZHm0vS1z3RpT X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:3::19 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [2.16 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.73)[-0.729]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; MIME_GOOD(-0.10)[text/plain]; HFILTER_HELO_IP_A(1.00)[pyroxene2a.sentex.ca]; HFILTER_HELO_NORES_A_OR_MX(0.30)[pyroxene2a.sentex.ca]; RCPT_COUNT_ONE(0.00)[1]; ARC_SIGNED(0.00)[i=1]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.27)[-0.267]; NEURAL_SPAM_LONG(0.16)[0.156]; DMARC_NA(0.00)[sentex.net]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; FORGED_RECIPIENTS(2.00)[freebsd-questions@freebsd.org, freebsd-questions@freebsd.org ...] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2020 13:13:57 -0000 Has anyone used the packet filtering features of the T520 and T540 cards on FreeBSD ? Rather than use ipfw or pf, I am hoping to offload some of the packet filtering to the features on the card. Does it save CPU processing power in the end ? Is there a sweet spot to using it, or am I better off using ipfw ? I am looking at dropping traffic in the 2-5Gb/s range filtering out bogons and other bad packets. Would appreciate any examples / caveats / tip on how to use it as the docs are kind of sparse. Using it on RELENG_12     ---Mike