There was no significant association of TLR2 and LTF genotypes with subclinical mastitis incidence in the current study. Here, TLR2 is linked to mastitis.