net/mlx4: refactor internal flow rules