|
Revision tags: v24.07-rc2, v24.07-rc1 |
|
| #
a71cdcc5 |
| 03-May-2024 |
Gregory Etelson <getelson@nvidia.com> |
cmdline: increase input buffer size
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 A
cmdline: increase input buffer size
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@nvidia.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
show more ...
|
|
Revision tags: v24.03, v24.03-rc4, v24.03-rc3, v24.03-rc2, v24.03-rc1, v23.11, v23.11-rc4, v23.11-rc3, v23.11-rc2, v23.11-rc1 |
|
| #
f44f2edd |
| 01-Aug-2023 |
Stephen Hemminger <stephen@networkplumber.org> |
cmdline: remove poll function
The API function cmdline_poll() was unused by any project, untested, and buggy. Remove it from 23.11 release.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.
cmdline: remove poll function
The API function cmdline_poll() was unused by any project, untested, and buggy. Remove it from 23.11 release.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
|
Revision tags: v23.07, v23.07-rc4, v23.07-rc3, v23.07-rc2, v23.07-rc1, v23.03, v23.03-rc4, v23.03-rc3 |
|
| #
f1d0993e |
| 17-Mar-2023 |
Stephen Hemminger <stephen@networkplumber.org> |
app/testpmd: fix interactive mode on Windows
The cmdline_poll() function is broken and was not fully tested, go back to using cmdline_interact().
Instead, use sigaction() to cancel read character o
app/testpmd: fix interactive mode on Windows
The cmdline_poll() function is broken and was not fully tested, go back to using cmdline_interact().
Instead, use sigaction() to cancel read character on Unix OS's and a new helper to cancel I/O on Windows.
Bugzilla ID: 1180 Fixes: 0fd1386c30c3 ("app/testpmd: cleanup cleanly from signal") Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Olivier Matz <olivier.matz@6wind.com>
show more ...
|
|
Revision tags: v23.03-rc2, v23.03-rc1 |
|
| #
1ac8dd1d |
| 03-Feb-2023 |
Stephen Hemminger <stephen@networkplumber.org> |
cmdline: make rdline status not private
The function cmdline_poll() returns values from rdline_status enum but that was moved to being defined only in cmdline_private.h.
For proper use of the API t
cmdline: make rdline status not private
The function cmdline_poll() returns values from rdline_status enum but that was moved to being defined only in cmdline_private.h.
For proper use of the API the return value needs to be visible to callers. This was not a problem before because cmdline_poll() was not used anywhere.
Fixes: f8f8dc289095 ("cmdline: make struct rdline opaque") Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Chengwen Feng <fengchengwen@huawei.com>
show more ...
|
|
Revision tags: v22.11, v22.11-rc4, v22.11-rc3, v22.11-rc2, v22.11-rc1, v22.07, v22.07-rc4, v22.07-rc3, v22.07-rc2, v22.07-rc1, v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1, v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2, v21.11-rc1 |
|
| #
f8f8dc28 |
| 07-Oct-2021 |
Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> |
cmdline: make struct rdline opaque
Hide struct rdline definition and some RDLINE_* constants in order to be able to change internal buffer sizes transparently to the user. Add new functions:
* rdli
cmdline: make struct rdline opaque
Hide struct rdline definition and some RDLINE_* constants in order to be able to change internal buffer sizes transparently to the user. Add new functions:
* rdline_new(): allocate and initialize struct rdline. This function replaces rdline_init() and takes an extra parameter: opaque user data for the callbacks. * rdline_free(): deallocate struct rdline. * rdline_get_history_buffer_size(): for use in tests. * rdline_get_opaque(): to obtain user data in callback functions.
Remove rdline_init() function from library headers and export list, because using it requires the knowledge of sizeof(struct rdline).
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Acked-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Narcisa Vasile <navasile@linux.microsoft.com>
show more ...
|
| #
f43809d2 |
| 07-Oct-2021 |
Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> |
cmdline: make struct cmdline opaque
Remove the definition of `struct cmdline` from public header. Deprecation notice: https://mails.dpdk.org/archives/dev/2020-September/183310.html
Signed-off-by: D
cmdline: make struct cmdline opaque
Remove the definition of `struct cmdline` from public header. Deprecation notice: https://mails.dpdk.org/archives/dev/2020-September/183310.html
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Acked-by: David Marchand <david.marchand@redhat.com> Acked-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Narcisa Vasile <navasile@linux.microsoft.com>
show more ...
|
|
Revision tags: v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2, v21.08-rc1, v21.05, v21.05-rc4, v21.05-rc3, v21.05-rc2, v21.05-rc1 |
|
| #
99a2dd95 |
| 20-Apr-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also m
lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal'
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|