> Hi,
> When I run v25.11 dpdk-test and input command
> "cryptodev_dpaa_sec_autotest", I am not
> sure the value of bearer input to rte_security_session_create() is the 3GPP
> RRC/PDCP bearer id
> or bearer id -1.
> For example, for 3GPP DRB bearer id 5, should input 4 to
> rte_security_session_create() ?
> for RRC SRB1, the bearer input to rte_security_session_create() should be 1
> or 0
> ?
> I also find that the bearer is directly used to compute IV without any sub 1
> opeartion
> in lib/pdcp/pdcp_process.c : pdcp_iv_gen_func_set( ).
> Anyway, I hope community can confirm it .
> Thanks a lot .
>
The security session is not subtracting 1 internally and the drivers are not
supposed to do that as well.
This is the 5 bit field, so any value upto 0x1F is allowed.