void
vr_drop_stats_req_process(void *s_req)
{
    int ret;
    vr_drop_stats_req *req = (vr_drop_stats_req *)s_req;

    if ((req->h_op != SANDESH_OP_GET) && (ret = -EOPNOTSUPP))
        vr_send_response(ret);

    /* zero vds_core means to sum up all the per-core stats */
    vr_drop_stats_get((unsigned)(req->vds_core - 1));
    return;
}
void
vr_drop_stats_req_process(void *s_req)
{
    int ret;
    vr_drop_stats_req *req = (vr_drop_stats_req *)s_req;
    unsigned int core;

    /**
     * Check if requested core number is sane. If not, let's assume the
     * request was made for summed up stats for all the cores.
     */
    if (req->vds_core > 0 && req->vds_core <= vr_num_cpus) {
        core = req->vds_core;
    } else {
        core = 0;
    }

    if ((req->h_op != SANDESH_OP_GET) && (ret = -EOPNOTSUPP))
        vr_send_response(ret);

    vr_drop_stats_get(core);
    return;
}