qcacld-3.0: Add log for BPF set instructions

qcacld-2.0 to qcacld-3.0 propagation

In the current implementation, there is no log of instructions
set by framework.
To resolve this and understand the packet filters,
log of set instructions is added.

Change-Id: Ibe3c23de374261741f78a76c05c97b2342e9064e
CRs-Fixed: 1013062
This commit is contained in:
Rajeev Kumar Sirasanagandla 2016-08-22 14:56:57 +05:30 • committed by qcabuildsw
commit 62b6303900

View file

@ -6220,6 +6220,10 @@ static int hdd_set_reset_bpf_offload(hdd_context_t *hdd_ctx,
nla_memcpy(bpf_set_offload->program, tb[BPF_PROGRAM], prog_len);
bpf_set_offload->session_id = adapter->sessionId;
hdd_info("BPF set instructions");
QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_INFO,
bpf_set_offload->program, prog_len);
/* Parse and fetch filter Id */
if (!tb[BPF_FILTER_ID]) {
hdd_err("attr filter id failed");