From owner-freebsd-questions@freebsd.org Mon Aug 17 15:09:51 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 34FF13B4F39 for ; Mon, 17 Aug 2020 15:09:51 +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 4BVcsV1wVpz3Y49 for ; Mon, 17 Aug 2020 15:09:50 +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 07HF9mT8070130 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Mon, 17 Aug 2020 11:09:49 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: packet filtering via Chelsio NICs From: mike tancsa To: FreeBSD Questions References: <6628bb23-c263-0cd7-4861-642977dfe467@sentex.net> 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: Date: Mon, 17 Aug 2020 11:09:49 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <6628bb23-c263-0cd7-4861-642977dfe467@sentex.net> 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=1597676990; 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: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=q9ipYe2ldF288f8qSyHmCeb+J1BCI/d/2IusyY8AQDI=; b=eJ0jdmRxNKdpCKhpoEvicYFpbAYjlerzzreuEzxr5rSZauM5lWH3G5RYxdz6nBrmJpKkGu t2Gtbg7eKSAo8La8r+B6+Xjalvir9VS31Ns4dIzkktbkLDg0AUqHGKi9GHEHBgJb3hsQBa UjYyX6WzhogDPfj6RNabcfjv3KzKmemU5x1CCfmM0RSUnsReqldXtUD0HNcrnFmQZ3zQlG a11aiUSnAQBbmNu0KvdhTGQvN94JP9Aahx14AhB6IsF/8y68JRPCp4UojtkCIXlv5DIGT0 bzd1AMvyKIsivpdaA/ePW2+GoyfoRE37PWMipCoTNkpqJG5xfsJGZcqWXymKyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1597676990; a=rsa-sha256; cv=none; b=lJaUBhPlShO0I7djiy4QSUyMz2WSBak5iZRoQa44B7KQPbmI9VM/and2P5fS8BiyAwU6yM GykwontSiuMKnrqlgc+nFatdPPelhC35+lMbFrtzttTiW/9bH88VW/gguVceMNZ++8v3sL 2KkB1Ig3XEdXJk0pWAWgNvH+2MMyLdXoyWz6n5FZkRpfXbuLiEHgrI1thU1Oe7R/Rk0SR6 6h+2PFXBmht4L5sOLLhZAK+sAanHxqh0FqLv8TypUmCIovkF3vUyz0TmsaJZgLXmxmkn45 2m3DihYiPMYMB21o/Re776D0o6mejRcQ8en7AaAUEIcbiQCO/fsZpRVCu3hI/w== 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: 4BVcsV1wVpz3Y49 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 [-1.46 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.961]; 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]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; HFILTER_HELO_IP_A(1.00)[pyroxene2a.sentex.ca]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.92)[-0.917]; HFILTER_HELO_NORES_A_OR_MX(0.30)[pyroxene2a.sentex.ca]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.58)[-0.578]; ARC_SIGNED(0.00)[i=1]; 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)[] 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 15:09:51 -0000 Actually, found this very cool reference which is exactly what I am looking for https://bsdrp.net/documentation/examples/dropping_packets_at_high_rate     ---Mike On 8/17/2020 9:13 AM, mike tancsa wrote: > 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 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >