Hi,
I come across the macro GSH_CACHE_PAD.
what I can guess from its name is it is used for padding, but unable to
understand, where exactly it is needed, also what the number indicates.
To be specific I am talking about below structure:

struct req_q_pair {
        const char *s;
        GSH_CACHE_PAD(0);
        struct req_q producer;  /* from decoder */
        GSH_CACHE_PAD(1);
        struct req_q consumer;  /* to executor */
        GSH_CACHE_PAD(2);
};

In above if I need to add another field like below, do I need to add the
pad ?
struct req_q_pair {
        const char *s;
        GSH_CACHE_PAD(0);
        struct req_q producer;  /* from decoder */
        GSH_CACHE_PAD(1);
        struct req_q consumer;  /* to executor */
        GSH_CACHE_PAD(2);
        uint64_t total;         /* cumulative */
};

Thanks in advance.

-- 
with regards,
Sachin Punadikar
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to