[PATCH v3] cmdline: increase input buffer size
David Marchand
david.marchand at redhat.com
Wed Jun 19 21:58:59 CEST 2024
On Fri, May 3, 2024 at 6:28 AM Gregory Etelson <getelson at nvidia.com> wrote:
>
> DPDK defines cmdline input buffer size to 512 characters.
> That buffer size can be too small for long application input.
> For example, the following flow template API testpmd command is 444
> bytes long:
> ```
> flow queue 0 create 0 template_table 1000 \
> pattern_template 0 actions_template 0 postpone no \
> pattern eth / ipv4 / udp / end \
> actions modify_field op set dst_type tag dst_level 0 dst_offset 0 \
> src_type value src_value 0x31 width 32 / \
> modify_field op set dst_type ipv4_src src_type value \
> src_value 10101010 width 32 / modify_field op add dst_type \
> ipv4_ttl dst_level 0 dst_offset 0 src_type value \
> src_value ff width 8 / count / jump group 100 / end
> ```
>
> The patch increases cmdline input buffer size to the LINE_MAX value,
> which typically is 2048 bytes.
>
> Signed-off-by: Gregory Etelson <getelson at nvidia.com>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> Reviewed-by: Morten Brørup <mb at smartsharesystems.com>
Applied, thanks.
--
David Marchand
More information about the dev
mailing list