On 11/24/25 3:51 PM, Michael S. Tsirkin wrote: > On Wed, Nov 19, 2025 at 01:15:20PM -0600, Daniel Jurgens wrote: >> Add support for IP_USER type rules from ethtool. >> >> Example: >> $ ethtool -U ens9 flow-type ip4 src-ip 192.168.51.101 action -1 >> Added rule with ID 1 >> >> The example rule will drop packets with the source IP specified. >> >> Signed-off-by: Daniel Jurgens <[email protected]> >> Reviewed-by: Parav Pandit <[email protected]> >> Reviewed-by: Shahar Shitrit <[email protected]> >> Reviewed-by: Xuan Zhuo <[email protected]> >> --- >> v4: >> - Fixed bug in protocol check of parse_ip4 >> - (u8 *) to (void *) casting. >> - Alignment issues. >> >> v12 >> - refactor calculate_flow_sizes to remove goto. MST >> - refactor build_and_insert to remove goto validate. MST >> - Move parse_ip4 l3_mask check to TCP/UDP patch. MST >> - Check saddr/daddr mask before copying in parse_ip4. MST >> - Remove tos check in setup_ip_key_mask. > > So if user attempts to set a filter by tos now, what blocks it? > because parse_ip4 seems to ignore it ... > Added it to validate_ipv4_mask.
- [PATCH net-next v12 01/12] virtio_pci: Remove supported... Daniel Jurgens
- [PATCH net-next v12 04/12] virtio: Expose object create... Daniel Jurgens
- [PATCH net-next v12 03/12] virtio: Expose generic devic... Daniel Jurgens
- Re: [PATCH net-next v12 03/12] virtio: Expose gene... Michael S. Tsirkin
- Re: [PATCH net-next v12 03/12] virtio: Expose ... Dan Jurgens
- Re: [PATCH net-next v12 03/12] virtio: Exp... Michael S. Tsirkin
- [PATCH net-next v12 06/12] virtio_net: Create a FF grou... Daniel Jurgens
- [PATCH net-next v12 09/12] virtio_net: Implement IPv4 e... Daniel Jurgens
- Re: [PATCH net-next v12 09/12] virtio_net: Impleme... Michael S. Tsirkin
- Re: [PATCH net-next v12 09/12] virtio_net: Imp... Dan Jurgens
- Re: [PATCH net-next v12 09/12] virtio_net: Imp... Dan Jurgens
- [PATCH net-next v12 08/12] virtio_net: Use existing cla... Daniel Jurgens
- Re: [PATCH net-next v12 08/12] virtio_net: Use exi... Michael S. Tsirkin
- Re: [PATCH net-next v12 08/12] virtio_net: Use... Dan Jurgens
- Re: [PATCH net-next v12 08/12] virtio_net:... Michael S. Tsirkin
- [PATCH net-next v12 05/12] virtio_net: Query and set fl... Daniel Jurgens
- Re: [PATCH net-next v12 05/12] virtio_net: Query a... Jakub Kicinski
- Re: [PATCH net-next v12 05/12] virtio_net: Query a... Michael S. Tsirkin
- Re: [PATCH net-next v12 05/12] virtio_net: Query a... Michael S. Tsirkin
