diff options
author | Ido Schimmel <idosch@nvidia.com> | 2021-03-14 14:19:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-14 15:00:43 -0700 |
commit | a03e99d39f1943ec88f6fd3b0b9f34c20663d401 (patch) | |
tree | 767918907a8f75b3bc6ed6f2d6ca4159aab524fe /net/x25 | |
parent | c6baf7eeb0cf82f6a90a703f6548250fc85cfdcc (diff) |
psample: Encapsulate packet metadata in a struct
Currently, callers of psample_sample_packet() pass three metadata
attributes: Ingress port, egress port and truncated size. Subsequent
patches are going to add more attributes (e.g., egress queue occupancy),
which also need an indication whether they are valid or not.
Encapsulate packet metadata in a struct in order to keep the number of
arguments reasonable.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions