[PATCH 6.18 018/312] i40e: validate ring_len parameter against hardware-specific values